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.
- package/dist/index.cjs +68 -1
- package/dist/index.js +58 -1
- package/dist/inferred-types/tsconfig.tsbuildinfo +1 -1
- package/dist/runtime/literals/stripChars.js +1 -1
- package/dist/runtime/literals/stripSurround.d.ts +2 -2
- package/dist/runtime/literals/stripSurround.d.ts.map +1 -1
- package/dist/runtime/literals/stripSurround.js +1 -1
- package/dist/runtime/runtime-types/asToken.d.ts.map +1 -1
- package/dist/runtime/runtime-types/asToken.js +0 -6
- package/dist/runtime/tsconfig.tsbuildinfo +1 -1
- package/dist/runtime/type-guards/geo/index.d.ts +4 -0
- package/dist/runtime/type-guards/geo/index.d.ts.map +1 -0
- package/dist/runtime/type-guards/geo/index.js +3 -0
- package/dist/runtime/type-guards/geo/isIso3166Alpha2.d.ts +46 -0
- package/dist/runtime/type-guards/geo/isIso3166Alpha2.d.ts.map +1 -0
- package/dist/runtime/type-guards/{countries → geo}/isIso3166Alpha2.js +36 -0
- package/dist/runtime/type-guards/geo/isUsState.d.ts +4 -0
- package/dist/runtime/type-guards/geo/isUsState.d.ts.map +1 -0
- package/dist/runtime/type-guards/geo/isUsState.js +10 -0
- package/dist/runtime/type-guards/geo/isZipCode.d.ts +23 -0
- package/dist/runtime/type-guards/geo/isZipCode.d.ts.map +1 -0
- package/dist/runtime/type-guards/geo/isZipCode.js +40 -0
- package/dist/runtime/type-guards/index.d.ts +1 -1
- package/dist/runtime/type-guards/index.d.ts.map +1 -1
- package/dist/runtime/type-guards/index.js +1 -1
- package/dist/runtime/type-guards/retail.d.ts +6 -1
- package/dist/runtime/type-guards/retail.d.ts.map +1 -1
- package/dist/runtime/type-guards/retail.js +7 -0
- package/dist/types/runtime-types/Shape.d.ts +2 -2
- package/dist/types/runtime-types/Shape.d.ts.map +1 -1
- package/dist/types/string-literals/character-sets/retail-urls.d.ts +4 -0
- package/dist/types/string-literals/character-sets/retail-urls.d.ts.map +1 -1
- package/dist/types/string-literals/geo/zip.d.ts +3 -3
- package/dist/types/string-literals/geo/zip.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/runtime/type-guards/countries/index.d.ts +0 -2
- package/dist/runtime/type-guards/countries/index.d.ts.map +0 -1
- package/dist/runtime/type-guards/countries/index.js +0 -1
- package/dist/runtime/type-guards/countries/isIso3166Alpha2.d.ts +0 -21
- package/dist/runtime/type-guards/countries/isIso3166Alpha2.d.ts.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { StripSurround
|
|
2
|
-
export type StripSurroundConfigured<TStrip extends readonly (string | number)[]> = <TInput extends string | number>(input: TInput) => StripSurround<TInput,
|
|
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":"
|
|
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 +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;
|
|
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
|
};
|