inferred-types 0.55.23 → 1.0.0-beta.1

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.
Files changed (35) hide show
  1. package/README.md +2 -2
  2. package/modules/constants/dist/index.cjs +8641 -3110
  3. package/modules/constants/dist/index.cjs.map +1 -1
  4. package/modules/constants/dist/index.d.cts +4620 -0
  5. package/modules/constants/dist/index.d.cts.map +1 -0
  6. package/modules/constants/dist/index.d.ts +3502 -2987
  7. package/modules/constants/dist/index.d.ts.map +1 -0
  8. package/modules/constants/dist/index.js +8406 -2897
  9. package/modules/constants/dist/index.js.map +1 -1
  10. package/modules/inferred-types/dist/index.cjs +18 -9778
  11. package/modules/inferred-types/dist/index.d.cts +3 -0
  12. package/modules/inferred-types/dist/index.d.ts +3 -39237
  13. package/modules/inferred-types/dist/index.js +3 -9063
  14. package/modules/runtime/dist/index.cjs +16161 -6430
  15. package/modules/runtime/dist/index.cjs.map +1 -1
  16. package/modules/runtime/dist/index.d.cts +14592 -0
  17. package/modules/runtime/dist/index.d.cts.map +1 -0
  18. package/modules/runtime/dist/index.d.ts +10550 -11940
  19. package/modules/runtime/dist/index.d.ts.map +1 -0
  20. package/modules/runtime/dist/index.js +15545 -5915
  21. package/modules/runtime/dist/index.js.map +1 -1
  22. package/modules/runtime/dist/runtime/tsconfig.tsbuildinfo +1 -0
  23. package/modules/types/dist/index.d.mts +28483 -0
  24. package/modules/types/dist/index.d.mts.map +1 -0
  25. package/modules/types/dist/index.d.ts +23952 -14621
  26. package/modules/types/dist/index.d.ts.map +1 -0
  27. package/modules/types/dist/index.js +224 -201
  28. package/modules/types/dist/index.js.map +1 -1
  29. package/modules/types/dist/index.mjs +216 -0
  30. package/modules/types/dist/index.mjs.map +1 -0
  31. package/package.json +125 -106
  32. package/modules/inferred-types/dist/index.cjs.map +0 -1
  33. package/modules/inferred-types/dist/index.js.map +0 -1
  34. package/modules/types/dist/index.cjs +0 -249
  35. package/modules/types/dist/index.cjs.map +0 -1
package/README.md CHANGED
@@ -19,7 +19,7 @@ Under the `src/` folder you'll find the the following subdirectories:
19
19
 
20
20
  ## Runtime synchronization with Types
21
21
 
22
- You will find many runtime functions like `ensureleading(str, substring)` which have a similarly named type (in this case `EnsureLeading<TStr, TSubstring>`). This is no accident and at some future point there may even be something approximating 1:1 parity.
22
+ You will find many runtime functions like `ensureLeading(str, substring)` which have a similarly named type (in this case `EnsureLeading<TStr, TSubstring>`). This is no accident and at some future point there may even be something approximating 1:1 parity.
23
23
 
24
24
  This connection between the type system and the runtime environment allows both a harmonization of variables across both environments and helps to ensure their consistency but it the runtime environment also often really needs strong type utilities to extract out narrow type definitions in the runtime environment.
25
25
 
@@ -49,7 +49,7 @@ const people = pluralize("person");
49
49
 
50
50
  #### Consistency with Ensure/Strip utilities
51
51
 
52
- - it's often desireable to _ensure_ that a string _starts with_ or _ends with_ a given string
52
+ - it's often desirable to _ensure_ that a string _starts with_ or _ends with_ a given string
53
53
  - the inverse can also be useful (aka, to _ensure_ a string _does not_ start or end with a given string literal)
54
54
  - this library provides `EnsureLeading`, `EnsureTrailing`, `StripLeading`, and `StripTrailing` utilities to meet these type needs
55
55