inferred-types 0.50.12 → 0.50.13

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 (41) hide show
  1. package/dist/index.cjs +68 -1
  2. package/dist/index.js +58 -1
  3. package/dist/inferred-types/tsconfig.tsbuildinfo +1 -1
  4. package/dist/runtime/literals/stripChars.js +1 -1
  5. package/dist/runtime/literals/stripSurround.d.ts +2 -2
  6. package/dist/runtime/literals/stripSurround.d.ts.map +1 -1
  7. package/dist/runtime/literals/stripSurround.js +1 -1
  8. package/dist/runtime/runtime-types/asToken.d.ts.map +1 -1
  9. package/dist/runtime/runtime-types/asToken.js +0 -6
  10. package/dist/runtime/tsconfig.tsbuildinfo +1 -1
  11. package/dist/runtime/type-guards/geo/index.d.ts +4 -0
  12. package/dist/runtime/type-guards/geo/index.d.ts.map +1 -0
  13. package/dist/runtime/type-guards/geo/index.js +3 -0
  14. package/dist/runtime/type-guards/geo/isIso3166Alpha2.d.ts +46 -0
  15. package/dist/runtime/type-guards/geo/isIso3166Alpha2.d.ts.map +1 -0
  16. package/dist/runtime/type-guards/{countries → geo}/isIso3166Alpha2.js +36 -0
  17. package/dist/runtime/type-guards/geo/isUsState.d.ts +4 -0
  18. package/dist/runtime/type-guards/geo/isUsState.d.ts.map +1 -0
  19. package/dist/runtime/type-guards/geo/isUsState.js +10 -0
  20. package/dist/runtime/type-guards/geo/isZipCode.d.ts +23 -0
  21. package/dist/runtime/type-guards/geo/isZipCode.d.ts.map +1 -0
  22. package/dist/runtime/type-guards/geo/isZipCode.js +40 -0
  23. package/dist/runtime/type-guards/index.d.ts +1 -1
  24. package/dist/runtime/type-guards/index.d.ts.map +1 -1
  25. package/dist/runtime/type-guards/index.js +1 -1
  26. package/dist/runtime/type-guards/retail.d.ts +6 -1
  27. package/dist/runtime/type-guards/retail.d.ts.map +1 -1
  28. package/dist/runtime/type-guards/retail.js +7 -0
  29. package/dist/types/runtime-types/Shape.d.ts +2 -2
  30. package/dist/types/runtime-types/Shape.d.ts.map +1 -1
  31. package/dist/types/string-literals/character-sets/retail-urls.d.ts +4 -0
  32. package/dist/types/string-literals/character-sets/retail-urls.d.ts.map +1 -1
  33. package/dist/types/string-literals/geo/zip.d.ts +3 -3
  34. package/dist/types/string-literals/geo/zip.d.ts.map +1 -1
  35. package/dist/types/tsconfig.tsbuildinfo +1 -1
  36. package/package.json +1 -1
  37. package/dist/runtime/type-guards/countries/index.d.ts +0 -2
  38. package/dist/runtime/type-guards/countries/index.d.ts.map +0 -1
  39. package/dist/runtime/type-guards/countries/index.js +0 -1
  40. package/dist/runtime/type-guards/countries/isIso3166Alpha2.d.ts +0 -21
  41. package/dist/runtime/type-guards/countries/isIso3166Alpha2.d.ts.map +0 -1
@@ -1,4 +1,4 @@
1
- import { asChars } from "../type-conversion/asChars";
1
+ import { asChars } from "src/runtime/index";
2
2
  /**
3
3
  * **stripChars**`(content, ...strip)`
4
4
  *
@@ -1,5 +1,5 @@
1
- import { StripSurround, TupleToUnion } from "src/types/index";
2
- export type StripSurroundConfigured<TStrip extends readonly (string | number)[]> = <TInput extends string | number>(input: TInput) => StripSurround<TInput, TupleToUnion<TStrip>>;
1
+ import { StripSurround } from "src/types/index";
2
+ export type StripSurroundConfigured<TStrip extends readonly (string | number)[]> = <TInput extends string | number>(input: TInput) => StripSurround<TInput, TStrip[number]>;
3
3
  /**
4
4
  * **stripSurround**`(chars) => (input) => _stripped_`
5
5
  *
@@ -1 +1 @@
1
- {"version":3,"file":"stripSurround.d.ts","sourceRoot":"","sources":["../../../src/runtime/literals/stripSurround.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,aAAa,EACb,YAAY,EACb,MAAM,iBAAiB,CAAC;AAEzB,MAAM,MAAM,uBAAuB,CACjC,MAAM,SAAS,SAAS,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,IACzC,CAAC,MAAM,SAAS,MAAM,GAAG,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,aAAa,CAAC,MAAM,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC,CAAC;AAGnG;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,aAAa,GACxB,MAAM,SAAS,SAAS,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,YAEjC,MAAM,KACf,uBAAuB,CAAC,MAAM,CAmBhC,CAAA"}
1
+ {"version":3,"file":"stripSurround.d.ts","sourceRoot":"","sources":["../../../src/runtime/literals/stripSurround.ts"],"names":[],"mappings":"AACA,OAAO,EACL,aAAa,EACd,MAAM,iBAAiB,CAAC;AAGzB,MAAM,MAAM,uBAAuB,CACjC,MAAM,SAAS,SAAS,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,IACzC,CAAC,MAAM,SAAS,MAAM,GAAG,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,aAAa,CAClE,MAAM,EACN,MAAM,CAAC,MAAM,CAAC,CACf,CAAC;AAGF;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,aAAa,GACxB,MAAM,SAAS,SAAS,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,YAEjC,MAAM,KACf,uBAAuB,CAAC,MAAM,CAmBhC,CAAA"}
@@ -1,4 +1,4 @@
1
- import { isNumber, } from "src/runtime/index";
1
+ import { isNumber } from "../type-guards/isNumber";
2
2
  /**
3
3
  * **stripSurround**`(chars) => (input) => _stripped_`
4
4
  *
@@ -1 +1 @@
1
- {"version":3,"file":"asToken.d.ts","sourceRoot":"","sources":["../../../src/runtime/runtime-types/asToken.ts"],"names":[],"mappings":"AACA,OAAO,EACL,oBAAoB,EACpB,iBAAiB,EACjB,UAAU,EACV,gBAAgB,EAChB,SAAS,EACV,MAAM,iBAAiB,CAAC;AAgEzB;;;;;;;;GAQG;AACH,eAAO,MAAM,4BAA4B,GAAI,CAAC,SAAS,iBAAiB,OAAO,CAAC,KAezE,UAAU,CAAC,CAAC,CAClB,CAAA;AA6BD;;;;;;;;;GASG;AACH,eAAO,MAAM,2BAA2B,GAAI,CAAC,SAAS,gBAAgB,OAAO,CAAC,KAKvE,UAAU,CAAC,CAAC,CAClB,CAAA;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,+BAA+B,GAAI,CAAC,SAAS,oBAAoB,QAAQ,CAAC,SAEtF,CAAA;AAID,eAAO,MAAM,WAAW,GAAI,CAAC,SAAS,SAAS,QAAQ,CAAC,WAEvD,CAAA"}
1
+ {"version":3,"file":"asToken.d.ts","sourceRoot":"","sources":["../../../src/runtime/runtime-types/asToken.ts"],"names":[],"mappings":"AACA,OAAO,EACL,oBAAoB,EACpB,iBAAiB,EACjB,UAAU,EACV,gBAAgB,EAChB,SAAS,EACV,MAAM,iBAAiB,CAAC;AAyDzB;;;;;;;;GAQG;AACH,eAAO,MAAM,4BAA4B,GAAI,CAAC,SAAS,iBAAiB,OAAO,CAAC,KAezE,UAAU,CAAC,CAAC,CAClB,CAAA;AA6BD;;;;;;;;;GASG;AACH,eAAO,MAAM,2BAA2B,GAAI,CAAC,SAAS,gBAAgB,OAAO,CAAC,KAKvE,UAAU,CAAC,CAAC,CAClB,CAAA;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,+BAA+B,GAAI,CAAC,SAAS,oBAAoB,QAAQ,CAAC,SAEtF,CAAA;AAID,eAAO,MAAM,WAAW,GAAI,CAAC,SAAS,SAAS,QAAQ,CAAC,WAEvD,CAAA"}
@@ -18,12 +18,6 @@ const _containerToToken = {
18
18
  "array(number)": "",
19
19
  "array(unknown)": "",
20
20
  };
21
- // const unionToToken : Record<string, unknown> = {
22
- // "Opt<string>": "<<union::[ <<string>>, <<undefined>> ]>>" as unknown ,
23
- // "Opt<number>": "<<union::[ <<number>>, <<undefined>> ]>>" as unknown,
24
- // "Opt<unknown>": "<<union::[ <<unknown>>, <<undefined>> ]>>" as unknown,
25
- // "Opt<boolean>": "<<union::[ <<boolean>>, <<undefined>> ]>>" as unknown,
26
- // } satisfies Record<SimpleUnionToken, unknown>
27
21
  const stringLiteral = (str) => {
28
22
  return stripAfter(stripBefore(str, "string("), ")");
29
23
  };