@purescraps/purehtml 0.8.0 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -58,6 +58,13 @@ declare abstract class Config<T = unknown> {
58
58
  declare class ConfigFactory {
59
59
  static fromYAML<T>(yaml: string): Config<T>;
60
60
  private static generate;
61
+ /**
62
+ * `type: number` / `type: boolean` on a primitive value are sugar for
63
+ * appending the corresponding transformer to the end of the transform
64
+ * chain, so the extracted value is coerced even when no explicit
65
+ * `transform` is provided. `type: string` (or no type) is left as-is.
66
+ */
67
+ private static appendTypeCoercion;
61
68
  private static generateSelector;
62
69
  private static generateTransform;
63
70
  private static detectExpectedType;