zcb 0.0.8 → 0.0.10
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/main/cli.mjs +182 -0
- package/dist/main/cli.mjs.map +1 -0
- package/dist/main/index.mjs +321 -0
- package/dist/main/index.mjs.map +1 -0
- package/dist/main/templates/config.ts.hbs +4 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -0
- package/dist/types/cli.d.ts +6 -0
- package/dist/types/cli.d.ts.map +1 -0
- package/dist/types/createConfigBuilder.d.ts +23 -0
- package/dist/types/createConfigBuilder.d.ts.map +1 -0
- package/dist/types/createConfigParser.d.ts +3 -0
- package/dist/types/createConfigParser.d.ts.map +1 -0
- package/dist/types/createConfigReader.d.ts +38 -0
- package/dist/types/createConfigReader.d.ts.map +1 -0
- package/dist/types/data/countryCodes.d.ts +2 -0
- package/dist/types/data/countryCodes.d.ts.map +1 -0
- package/dist/types/data/countryNames.d.ts +2 -0
- package/dist/types/data/countryNames.d.ts.map +1 -0
- package/dist/types/data/distanceUnits.d.ts +2 -0
- package/dist/types/data/distanceUnits.d.ts.map +1 -0
- package/dist/types/data/languageCodes.d.ts +2 -0
- package/dist/types/data/languageCodes.d.ts.map +1 -0
- package/dist/types/data/timezones.d.ts +2 -0
- package/dist/types/data/timezones.d.ts.map +1 -0
- package/dist/types/index.d.ts +10 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/transformers/cloneNonEnumerableValues.d.ts +3 -0
- package/dist/types/transformers/cloneNonEnumerableValues.d.ts.map +1 -0
- package/dist/types/transformers/removeDisabledSlices.d.ts +3 -0
- package/dist/types/transformers/removeDisabledSlices.d.ts.map +1 -0
- package/dist/types/transformers/runExperiments.d.ts +3 -0
- package/dist/types/transformers/runExperiments.d.ts.map +1 -0
- package/dist/types/transformers/setupExperiments.d.ts +3 -0
- package/dist/types/transformers/setupExperiments.d.ts.map +1 -0
- package/dist/types/types.d.ts +45 -0
- package/dist/types/types.d.ts.map +1 -0
- package/dist/types/utils/arrayHasInvalidDefaults.d.ts +3 -0
- package/dist/types/utils/arrayHasInvalidDefaults.d.ts.map +1 -0
- package/dist/types/utils/importValidateTransformWriteConfig.d.ts +3 -0
- package/dist/types/utils/importValidateTransformWriteConfig.d.ts.map +1 -0
- package/dist/types/utils/isDerivedValueCallback.d.ts +2 -0
- package/dist/types/utils/isDerivedValueCallback.d.ts.map +1 -0
- package/dist/types/utils/isInvalidPropertyOverride.d.ts +2 -0
- package/dist/types/utils/isInvalidPropertyOverride.d.ts.map +1 -0
- package/dist/types/utils/isPropertyReservedWord.d.ts +3 -0
- package/dist/types/utils/isPropertyReservedWord.d.ts.map +1 -0
- package/dist/types/utils/isSchemaValid.d.ts +3 -0
- package/dist/types/utils/isSchemaValid.d.ts.map +1 -0
- package/dist/types/utils/isValidPropertyDefinition.d.ts +3 -0
- package/dist/types/utils/isValidPropertyDefinition.d.ts.map +1 -0
- package/dist/types/utils/isValidValue.d.ts +2 -0
- package/dist/types/utils/isValidValue.d.ts.map +1 -0
- package/dist/types/utils/objectHasInvalidDefaults.d.ts +3 -0
- package/dist/types/utils/objectHasInvalidDefaults.d.ts.map +1 -0
- package/dist/types/utils/recordHasInvalidDefaults.d.ts +3 -0
- package/dist/types/utils/recordHasInvalidDefaults.d.ts.map +1 -0
- package/dist/types/utils/transformConfig.d.ts +4 -0
- package/dist/types/utils/transformConfig.d.ts.map +1 -0
- package/dist/types/utils/transformWriteConfig.d.ts +3 -0
- package/dist/types/utils/transformWriteConfig.d.ts.map +1 -0
- package/package.json +2 -2
- package/tsconfig.build.json +2 -1
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type ZodError, type z } from 'zod';
|
|
2
|
+
export declare const createConfigBuilder: <ZodTypes>(zodSchema: z.ZodSchema, derivedValueCallbacks?: Partial<Record<keyof ZodTypes, (c: { [Key in keyof ZodTypes]: ZodTypes[Key]; }) => ZodTypes[keyof ZodTypes]>>, initialValues?: Partial<{ [Key_1 in keyof ZodTypes]: ZodTypes[Key_1]; }>) => (Required<{ [Key_3 in keyof ZodTypes]: ZodTypes[Key_3]; }> extends infer T ? { [Key_2 in keyof T]: (value: { [Key_3 in keyof ZodTypes]: ZodTypes[Key_3]; }[Key_2] | ((c: { [Key_3 in keyof ZodTypes]: ZodTypes[Key_3]; }) => { [Key_3 in keyof ZodTypes]: ZodTypes[Key_3]; }[Key_2]), override?: boolean) => any & {
|
|
3
|
+
disable: () => any & any;
|
|
4
|
+
errors: () => ZodError['errors'];
|
|
5
|
+
experiment: (key: string) => any & any;
|
|
6
|
+
extend: (configBuilder: any & any) => any & any;
|
|
7
|
+
flush: () => { [Key_3 in keyof ZodTypes]: ZodTypes[Key_3]; };
|
|
8
|
+
fork: () => any & any;
|
|
9
|
+
toJson: () => string;
|
|
10
|
+
validate: () => boolean;
|
|
11
|
+
values: () => { [Key_3 in keyof ZodTypes]: ZodTypes[Key_3]; };
|
|
12
|
+
}; } : never) & {
|
|
13
|
+
disable: () => any & any;
|
|
14
|
+
errors: () => ZodError['errors'];
|
|
15
|
+
experiment: (key: string) => any & any;
|
|
16
|
+
extend: (configBuilder: any & any) => any & any;
|
|
17
|
+
flush: () => { [Key_3 in keyof ZodTypes]: ZodTypes[Key_3]; };
|
|
18
|
+
fork: () => any & any;
|
|
19
|
+
toJson: () => string;
|
|
20
|
+
validate: () => boolean;
|
|
21
|
+
values: () => { [Key_3 in keyof ZodTypes]: ZodTypes[Key_3]; };
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=createConfigBuilder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createConfigBuilder.d.ts","sourceRoot":"","sources":["../../src/createConfigBuilder.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,CAAC,EAAE,MAAM,KAAK,CAAC;AAe5C,eAAO,MAAM,mBAAmB,wBACnB,EAAE,SAAS,ufAuBP,OAAO;;YAIZ,MAAM,QAAQ,CAAC,QAAQ,CAAC;sBACd,MAAM;;;;YAIhB,MAAM,MAAM;cACV,MAAM,OAAO;;;;YANf,MAAM,QAAQ,CAAC,QAAQ,CAAC;sBACd,MAAM;;;;YAIhB,MAAM,MAAM;cACV,MAAM,OAAO;;CA4K1B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createConfigParser.d.ts","sourceRoot":"","sources":["../../src/createConfigParser.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAA0B,MAAM,YAAY,CAAC;AAG9E,eAAO,MAAM,kBAAkB,oEAEJ,mBAAmB,oBAS7C,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/// <reference types="lodash" resolution-mode="require"/>
|
|
2
|
+
import type { Get } from 'type-fest';
|
|
3
|
+
import type { Path, Scope } from './types.ts';
|
|
4
|
+
export declare const createConfigReader: <Config extends object>(config: Config) => {
|
|
5
|
+
<P extends Path<Config>>(path: P): string extends P ? any : import("lodash").GetFieldType<Config, P>;
|
|
6
|
+
scope<S extends Scope<Config>>(scope: S): {
|
|
7
|
+
<P_1 extends import("type-fest").Join<import("./types.ts").Leaves<Get<Config, S>, []>, ".">>(path: P_1): string extends P_1 ? any : import("lodash").GetFieldType<Get<Config, S>, P_1>;
|
|
8
|
+
scope<S_1 extends import("type-fest").Join<import("./types.ts").Paths<Get<Config, S>, []>, ".">>(scope: S_1): {
|
|
9
|
+
<P_2 extends import("type-fest").Join<import("./types.ts").Leaves<import("type-fest/source/get.js").GetWithPath<Get<Config, S>, S_1 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_1>, "."> : S_1, {}>, []>, ".">>(path: P_2): string extends P_2 ? any : import("lodash").GetFieldType<import("type-fest/source/get.js").GetWithPath<Get<Config, S>, S_1 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_1>, "."> : S_1, {}>, P_2>;
|
|
10
|
+
scope<S_2 extends import("type-fest").Join<import("./types.ts").Paths<import("type-fest/source/get.js").GetWithPath<Get<Config, S>, S_1 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_1>, "."> : S_1, {}>, []>, ".">>(scope: S_2): {
|
|
11
|
+
<P_3 extends import("type-fest").Join<import("./types.ts").Leaves<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<Get<Config, S>, S_1 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_1>, "."> : S_1, {}>, S_2 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_2>, "."> : S_2, {}>, []>, ".">>(path: P_3): string extends P_3 ? any : import("lodash").GetFieldType<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<Get<Config, S>, S_1 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_1>, "."> : S_1, {}>, S_2 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_2>, "."> : S_2, {}>, P_3>;
|
|
12
|
+
scope<S_3 extends import("type-fest").Join<import("./types.ts").Paths<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<Get<Config, S>, S_1 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_1>, "."> : S_1, {}>, S_2 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_2>, "."> : S_2, {}>, []>, ".">>(scope: S_3): {
|
|
13
|
+
<P_4 extends import("type-fest").Join<import("./types.ts").Leaves<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<Get<Config, S>, S_1 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_1>, "."> : S_1, {}>, S_2 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_2>, "."> : S_2, {}>, S_3 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_3>, "."> : S_3, {}>, []>, ".">>(path: P_4): string extends P_4 ? any : import("lodash").GetFieldType<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<Get<Config, S>, S_1 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_1>, "."> : S_1, {}>, S_2 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_2>, "."> : S_2, {}>, S_3 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_3>, "."> : S_3, {}>, P_4>;
|
|
14
|
+
scope<S_4 extends import("type-fest").Join<import("./types.ts").Paths<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<Get<Config, S>, S_1 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_1>, "."> : S_1, {}>, S_2 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_2>, "."> : S_2, {}>, S_3 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_3>, "."> : S_3, {}>, []>, ".">>(scope: S_4): {
|
|
15
|
+
<P_5 extends import("type-fest").Join<import("./types.ts").Leaves<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<Get<Config, S>, S_1 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_1>, "."> : S_1, {}>, S_2 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_2>, "."> : S_2, {}>, S_3 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_3>, "."> : S_3, {}>, S_4 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_4>, "."> : S_4, {}>, []>, ".">>(path: P_5): string extends P_5 ? any : import("lodash").GetFieldType<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<Get<Config, S>, S_1 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_1>, "."> : S_1, {}>, S_2 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_2>, "."> : S_2, {}>, S_3 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_3>, "."> : S_3, {}>, S_4 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_4>, "."> : S_4, {}>, P_5>;
|
|
16
|
+
scope<S_5 extends import("type-fest").Join<import("./types.ts").Paths<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<Get<Config, S>, S_1 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_1>, "."> : S_1, {}>, S_2 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_2>, "."> : S_2, {}>, S_3 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_3>, "."> : S_3, {}>, S_4 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_4>, "."> : S_4, {}>, []>, ".">>(scope: S_5): {
|
|
17
|
+
<P_6 extends import("type-fest").Join<import("./types.ts").Leaves<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<Get<Config, S>, S_1 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_1>, "."> : S_1, {}>, S_2 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_2>, "."> : S_2, {}>, S_3 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_3>, "."> : S_3, {}>, S_4 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_4>, "."> : S_4, {}>, S_5 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_5>, "."> : S_5, {}>, []>, ".">>(path: P_6): string extends P_6 ? any : import("lodash").GetFieldType<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<Get<Config, S>, S_1 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_1>, "."> : S_1, {}>, S_2 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_2>, "."> : S_2, {}>, S_3 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_3>, "."> : S_3, {}>, S_4 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_4>, "."> : S_4, {}>, S_5 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_5>, "."> : S_5, {}>, P_6>;
|
|
18
|
+
scope<S_6 extends import("type-fest").Join<import("./types.ts").Paths<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<Get<Config, S>, S_1 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_1>, "."> : S_1, {}>, S_2 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_2>, "."> : S_2, {}>, S_3 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_3>, "."> : S_3, {}>, S_4 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_4>, "."> : S_4, {}>, S_5 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_5>, "."> : S_5, {}>, []>, ".">>(scope: S_6): {
|
|
19
|
+
<P_7 extends import("type-fest").Join<import("./types.ts").Leaves<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<Get<Config, S>, S_1 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_1>, "."> : S_1, {}>, S_2 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_2>, "."> : S_2, {}>, S_3 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_3>, "."> : S_3, {}>, S_4 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_4>, "."> : S_4, {}>, S_5 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_5>, "."> : S_5, {}>, S_6 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_6>, "."> : S_6, {}>, []>, ".">>(path: P_7): string extends P_7 ? any : import("lodash").GetFieldType<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<Get<Config, S>, S_1 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_1>, "."> : S_1, {}>, S_2 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_2>, "."> : S_2, {}>, S_3 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_3>, "."> : S_3, {}>, S_4 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_4>, "."> : S_4, {}>, S_5 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_5>, "."> : S_5, {}>, S_6 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_6>, "."> : S_6, {}>, P_7>;
|
|
20
|
+
scope<S_7 extends import("type-fest").Join<import("./types.ts").Paths<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<Get<Config, S>, S_1 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_1>, "."> : S_1, {}>, S_2 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_2>, "."> : S_2, {}>, S_3 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_3>, "."> : S_3, {}>, S_4 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_4>, "."> : S_4, {}>, S_5 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_5>, "."> : S_5, {}>, S_6 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_6>, "."> : S_6, {}>, []>, ".">>(scope: S_7): {
|
|
21
|
+
<P_8 extends import("type-fest").Join<import("./types.ts").Leaves<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<Get<Config, S>, S_1 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_1>, "."> : S_1, {}>, S_2 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_2>, "."> : S_2, {}>, S_3 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_3>, "."> : S_3, {}>, S_4 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_4>, "."> : S_4, {}>, S_5 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_5>, "."> : S_5, {}>, S_6 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_6>, "."> : S_6, {}>, S_7 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_7>, "."> : S_7, {}>, []>, ".">>(path: P_8): string extends P_8 ? any : import("lodash").GetFieldType<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<Get<Config, S>, S_1 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_1>, "."> : S_1, {}>, S_2 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_2>, "."> : S_2, {}>, S_3 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_3>, "."> : S_3, {}>, S_4 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_4>, "."> : S_4, {}>, S_5 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_5>, "."> : S_5, {}>, S_6 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_6>, "."> : S_6, {}>, S_7 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_7>, "."> : S_7, {}>, P_8>;
|
|
22
|
+
scope<S_8 extends import("type-fest").Join<import("./types.ts").Paths<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<Get<Config, S>, S_1 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_1>, "."> : S_1, {}>, S_2 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_2>, "."> : S_2, {}>, S_3 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_3>, "."> : S_3, {}>, S_4 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_4>, "."> : S_4, {}>, S_5 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_5>, "."> : S_5, {}>, S_6 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_6>, "."> : S_6, {}>, S_7 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_7>, "."> : S_7, {}>, []>, ".">>(scope: S_8): {
|
|
23
|
+
<P_9 extends import("type-fest").Join<import("./types.ts").Leaves<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<Get<Config, S>, S_1 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_1>, "."> : S_1, {}>, S_2 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_2>, "."> : S_2, {}>, S_3 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_3>, "."> : S_3, {}>, S_4 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_4>, "."> : S_4, {}>, S_5 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_5>, "."> : S_5, {}>, S_6 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_6>, "."> : S_6, {}>, S_7 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_7>, "."> : S_7, {}>, S_8 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_8>, "."> : S_8, {}>, []>, ".">>(path: P_9): string extends P_9 ? any : import("lodash").GetFieldType<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<Get<Config, S>, S_1 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_1>, "."> : S_1, {}>, S_2 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_2>, "."> : S_2, {}>, S_3 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_3>, "."> : S_3, {}>, S_4 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_4>, "."> : S_4, {}>, S_5 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_5>, "."> : S_5, {}>, S_6 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_6>, "."> : S_6, {}>, S_7 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_7>, "."> : S_7, {}>, S_8 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_8>, "."> : S_8, {}>, P_9>;
|
|
24
|
+
scope<S_9 extends import("type-fest").Join<import("./types.ts").Paths<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<Get<Config, S>, S_1 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_1>, "."> : S_1, {}>, S_2 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_2>, "."> : S_2, {}>, S_3 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_3>, "."> : S_3, {}>, S_4 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_4>, "."> : S_4, {}>, S_5 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_5>, "."> : S_5, {}>, S_6 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_6>, "."> : S_6, {}>, S_7 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_7>, "."> : S_7, {}>, S_8 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_8>, "."> : S_8, {}>, []>, ".">>(scope: S_9): {
|
|
25
|
+
<P_10 extends import("type-fest").Join<import("./types.ts").Leaves<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<Get<Config, S>, S_1 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_1>, "."> : S_1, {}>, S_2 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_2>, "."> : S_2, {}>, S_3 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_3>, "."> : S_3, {}>, S_4 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_4>, "."> : S_4, {}>, S_5 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_5>, "."> : S_5, {}>, S_6 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_6>, "."> : S_6, {}>, S_7 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_7>, "."> : S_7, {}>, S_8 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_8>, "."> : S_8, {}>, S_9 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_9>, "."> : S_9, {}>, []>, ".">>(path: P_10): string extends P_10 ? any : import("lodash").GetFieldType<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<Get<Config, S>, S_1 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_1>, "."> : S_1, {}>, S_2 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_2>, "."> : S_2, {}>, S_3 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_3>, "."> : S_3, {}>, S_4 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_4>, "."> : S_4, {}>, S_5 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_5>, "."> : S_5, {}>, S_6 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_6>, "."> : S_6, {}>, S_7 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_7>, "."> : S_7, {}>, S_8 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_8>, "."> : S_8, {}>, S_9 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_9>, "."> : S_9, {}>, P_10>;
|
|
26
|
+
scope<S_10 extends import("type-fest").Join<import("./types.ts").Paths<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<import("type-fest/source/get.js").GetWithPath<Get<Config, S>, S_1 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_1>, "."> : S_1, {}>, S_2 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_2>, "."> : S_2, {}>, S_3 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_3>, "."> : S_3, {}>, S_4 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_4>, "."> : S_4, {}>, S_5 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_5>, "."> : S_5, {}>, S_6 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_6>, "."> : S_6, {}>, S_7 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_7>, "."> : S_7, {}>, S_8 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_8>, "."> : S_8, {}>, S_9 extends string ? import("type-fest").Split<import("type-fest/source/get.js").FixPathSquareBrackets<S_9>, "."> : S_9, {}>, []>, ".">>(scope: S_10): any;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
//# sourceMappingURL=createConfigReader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createConfigReader.d.ts","sourceRoot":"","sources":["../../src/createConfigReader.ts"],"names":[],"mappings":";AACA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AACrC,OAAO,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAE9C,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAI9B,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare const countryCodes: readonly ["AF", "AX", "AL", "DZ", "AS", "AD", "AO", "AI", "AQ", "AG", "AR", "AM", "AW", "AU", "AT", "AZ", "BS", "BH", "BD", "BB", "BY", "BE", "BZ", "BJ", "BM", "BT", "BO", "BA", "BW", "BV", "BR", "IO", "BN", "BG", "BF", "BI", "KH", "CM", "CA", "CV", "KY", "CF", "TD", "CL", "CN", "CX", "CC", "CO", "KM", "CG", "CD", "CK", "CR", "CI", "HR", "CU", "CY", "CZ", "DK", "DJ", "DM", "DO", "EC", "EG", "SV", "GQ", "ER", "EE", "ET", "FK", "FO", "FJ", "FI", "FR", "GF", "PF", "TF", "GA", "GM", "GE", "DE", "GH", "GI", "GR", "GL", "GD", "GP", "GU", "GT", "GG", "GN", "GW", "GY", "HT", "HM", "VA", "HN", "HK", "HU", "IS", "IN", "ID", "IR", "IQ", "IE", "IM", "IL", "IT", "JM", "JP", "JE", "JO", "KZ", "KE", "KI", "KR", "KW", "KG", "LA", "LV", "LB", "LS", "LR", "LY", "LI", "LT", "LU", "MO", "MK", "MG", "MW", "MY", "MV", "ML", "MT", "MH", "MQ", "MR", "MU", "YT", "MX", "FM", "MD", "MC", "MN", "ME", "MS", "MA", "MZ", "MM", "NA", "NR", "NP", "NL", "AN", "NC", "NZ", "NI", "NE", "NG", "NU", "NF", "MP", "NO", "OM", "PK", "PW", "PS", "PA", "PG", "PY", "PE", "PH", "PN", "PL", "PT", "PR", "QA", "RE", "RO", "RU", "RW", "BL", "SH", "KN", "LC", "MF", "PM", "VC", "WS", "SM", "ST", "SA", "SN", "RS", "SC", "SL", "SG", "SK", "SI", "SB", "SO", "ZA", "GS", "ES", "LK", "SD", "SR", "SJ", "SZ", "SE", "CH", "SY", "TW", "TJ", "TZ", "TH", "TL", "TG", "TK", "TO", "TT", "TN", "TR", "TM", "TC", "TV", "UG", "UA", "AE", "GB", "US", "UM", "UY", "UZ", "VU", "VE", "VN", "VG", "VI", "WF", "EH", "YE", "ZM", "ZW"];
|
|
2
|
+
//# sourceMappingURL=countryCodes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"countryCodes.d.ts","sourceRoot":"","sources":["../../../src/data/countryCodes.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,y8CAsPf,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare const countryNames: readonly ["Afghanistan", "Albania", "Algeria", "Andorra", "Angola", "Anguilla", "Antigua and Barbuda", "Argentina", "Armenia", "Aruba", "Australia", "Austria", "Azerbaijan", "Bahamas", "Bahrain", "Bangladesh", "Barbados", "Belarus", "Belgium", "Belize", "Benin", "Bermuda", "Bhutan", "Bolivia", "Bosnia and Herzegovina", "Botswana", "Brazil", "British Virgin Islands", "Brunei", "Bulgaria", "Burkina Faso", "Burundi", "Cambodia", "Cameroon", "Cape Verde", "Cayman Islands", "Chad", "Chile", "China", "Colombia", "Congo", "Cook Islands", "Costa Rica", "Cote D Ivoire", "Croatia", "Cruise Ship", "Cuba", "Cyprus", "Czech Republic", "Denmark", "Djibouti", "Dominica", "Dominican Republic", "Ecuador", "Egypt", "El Salvador", "Equatorial Guinea", "Estonia", "Ethiopia", "Falkland Islands", "Faroe Islands", "Fiji", "Finland", "France", "French Polynesia", "French West Indies", "Gabon", "Gambia", "Georgia", "Germany", "Ghana", "Gibraltar", "Greece", "Greenland", "Grenada", "Guam", "Guatemala", "Guernsey", "Guinea", "Guinea Bissau", "Guyana", "Haiti", "Honduras", "Hong Kong", "Hungary", "Iceland", "India", "Indonesia", "Iran", "Iraq", "Ireland", "Isle of Man", "Israel", "Italy", "Jamaica", "Japan", "Jersey", "Jordan", "Kazakhstan", "Kenya", "Kuwait", "Kyrgyz Republic", "Laos", "Latvia", "Lebanon", "Lesotho", "Liberia", "Libya", "Liechtenstein", "Lithuania", "Luxembourg", "Macau", "Macedonia", "Madagascar", "Malawi", "Malaysia", "Maldives", "Mali", "Malta", "Mauritania", "Mauritius", "Mexico", "Moldova", "Monaco", "Mongolia", "Montenegro", "Montserrat", "Morocco", "Mozambique", "Namibia", "Nepal", "Netherlands", "Netherlands Antilles", "New Caledonia", "New Zealand", "Nicaragua", "Niger", "Nigeria", "Norway", "Oman", "Pakistan", "Palestine", "Panama", "Papua New Guinea", "Paraguay", "Peru", "Philippines", "Poland", "Portugal", "Puerto Rico", "Qatar", "Reunion", "Romania", "Russia", "Rwanda", "Saint Pierre and Miquelon", "Samoa", "San Marino", "Satellite", "Saudi Arabia", "Senegal", "Serbia", "Seychelles", "Sierra Leone", "Singapore", "Slovakia", "Slovenia", "South Africa", "South Korea", "Spain", "Sri Lanka", "St Kitts and Nevis", "St Lucia", "St Vincent", "St. Lucia", "Sudan", "Suriname", "Swaziland", "Sweden", "Switzerland", "Syria", "Taiwan", "Tajikistan", "Tanzania", "Thailand", "Timor L'Este", "Togo", "Tonga", "Trinidad and Tobago", "Tunisia", "Turkey", "Turkmenistan", "Turks and Caicos", "Uganda", "Ukraine", "United Arab Emirates", "United Kingdom", "Uruguay", "Uzbekistan", "Venezuela", "Vietnam", "Virgin Islands (US)", "Yemen", "Zambia", "Zimbabwe"];
|
|
2
|
+
//# sourceMappingURL=countryNames.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"countryNames.d.ts","sourceRoot":"","sources":["../../../src/data/countryNames.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,yhFA8Mf,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"distanceUnits.d.ts","sourceRoot":"","sources":["../../../src/data/distanceUnits.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,uBAAwB,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare const languageCodes: readonly ["aa", "ab", "ae", "af", "ak", "am", "an", "ar", "as", "av", "ay", "az", "ba", "be", "bg", "bi", "bm", "bn", "bo", "br", "bs", "ca", "ce", "ch", "co", "cr", "cs", "cu", "cv", "cy", "da", "de", "dv", "dz", "ee", "el", "en", "eo", "es", "et", "eu", "fa", "ff", "fi", "fj", "fo", "fr", "fy", "ga", "gd", "gl", "gn", "gu", "gv", "ha", "he", "hi", "ho", "hr", "ht", "hu", "hy", "hz", "ia", "id", "ie", "ig", "ii", "ik", "io", "is", "it", "iu", "ja", "jv", "ka", "kg", "ki", "kj", "kk", "kl", "km", "kn", "ko", "kr", "ks", "ku", "kv", "kw", "ky", "la", "lb", "lg", "li", "ln", "lo", "lt", "lu", "lv", "mg", "mh", "mi", "mk", "ml", "mn", "mr", "ms", "mt", "my", "na", "nb", "nd", "ne", "ng", "nl", "nn", "no", "nr", "nv", "ny", "oc", "oj", "om", "or", "os", "pa", "pi", "pl", "ps", "pt", "qu", "rm", "rn", "ro", "ru", "rw", "sa", "sc", "sd", "se", "sg", "si", "sk", "sl", "sm", "sn", "so", "sq", "sr", "ss", "st", "su", "sv", "sw", "ta", "te", "tg", "th", "ti", "tk", "tl", "tn", "to", "tr", "ts", "tt", "tw", "ty", "ug", "uk", "ur", "uz", "ve", "vi", "vo", "wa", "wo", "xh", "yi", "yo", "za", "zh", "zu"];
|
|
2
|
+
//# sourceMappingURL=languageCodes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"languageCodes.d.ts","sourceRoot":"","sources":["../../../src/data/languageCodes.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,qlCAwLhB,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare const timezones: readonly ["Africa/Abidjan", "Africa/Accra", "Africa/Addis_Ababa", "Africa/Algiers", "Africa/Asmara", "Africa/Bamako", "Africa/Bangui", "Africa/Banjul", "Africa/Bissau", "Africa/Blantyre", "Africa/Brazzaville", "Africa/Bujumbura", "Africa/Cairo", "Africa/Casablanca", "Africa/Ceuta", "Africa/Conakry", "Africa/Dakar", "Africa/Dar_es_Salaam", "Africa/Djibouti", "Africa/Douala", "Africa/El_Aaiun", "Africa/Freetown", "Africa/Gaborone", "Africa/Harare", "Africa/Johannesburg", "Africa/Juba", "Africa/Kampala", "Africa/Khartoum", "Africa/Kigali", "Africa/Kinshasa", "Africa/Lagos", "Africa/Libreville", "Africa/Lome", "Africa/Luanda", "Africa/Lubumbashi", "Africa/Lusaka", "Africa/Malabo", "Africa/Maputo", "Africa/Maseru", "Africa/Mbabane", "Africa/Mogadishu", "Africa/Monrovia", "Africa/Nairobi", "Africa/Ndjamena", "Africa/Niamey", "Africa/Nouakchott", "Africa/Ouagadougou", "Africa/Porto-Novo", "Africa/Sao_Tome", "Africa/Tripoli", "Africa/Tunis", "Africa/Windhoek", "America/Adak", "America/Anchorage", "America/Anguilla", "America/Antigua", "America/Araguaina", "America/Argentina/Buenos_Aires", "America/Argentina/Catamarca", "America/Argentina/Cordoba", "America/Argentina/Jujuy", "America/Argentina/La_Rioja", "America/Argentina/Mendoza", "America/Argentina/Rio_Gallegos", "America/Argentina/Salta", "America/Argentina/San_Juan", "America/Argentina/San_Luis", "America/Argentina/Tucuman", "America/Argentina/Ushuaia", "America/Aruba", "America/Asuncion", "America/Atikokan", "America/Bahia", "America/Bahia_Banderas", "America/Barbados", "America/Belem", "America/Belize", "America/Blanc-Sablon", "America/Boa_Vista", "America/Bogota", "America/Boise", "America/Cambridge_Bay", "America/Campo_Grande", "America/Cancun", "America/Caracas", "America/Cayenne", "America/Cayman", "America/Chicago", "America/Chihuahua", "America/Costa_Rica", "America/Creston", "America/Cuiaba", "America/Curacao", "America/Danmarkshavn", "America/Dawson", "America/Dawson_Creek", "America/Denver", "America/Detroit", "America/Dominica", "America/Edmonton", "America/Eirunepe", "America/El_Salvador", "America/Fort_Nelson", "America/Fortaleza", "America/Glace_Bay", "America/Godthab", "America/Goose_Bay", "America/Grand_Turk", "America/Grenada", "America/Guadeloupe", "America/Guatemala", "America/Guayaquil", "America/Guyana", "America/Halifax", "America/Havana", "America/Hermosillo", "America/Indiana/Indianapolis", "America/Indiana/Knox", "America/Indiana/Marengo", "America/Indiana/Petersburg", "America/Indiana/Tell_City", "America/Indiana/Vevay", "America/Indiana/Vincennes", "America/Indiana/Winamac", "America/Inuvik", "America/Iqaluit", "America/Jamaica", "America/Juneau", "America/Kentucky/Louisville", "America/Kentucky/Monticello", "America/Kralendijk", "America/La_Paz", "America/Lima", "America/Los_Angeles", "America/Lower_Princes", "America/Maceio", "America/Managua", "America/Manaus", "America/Marigot", "America/Martinique", "America/Matamoros", "America/Mazatlan", "America/Menominee", "America/Merida", "America/Metlakatla", "America/Mexico_City", "America/Miquelon", "America/Moncton", "America/Monterrey", "America/Montevideo", "America/Montserrat", "America/Nassau", "America/New_York", "America/Nipigon", "America/Nome", "America/Noronha", "America/North_Dakota/Beulah", "America/North_Dakota/Center", "America/North_Dakota/New_Salem", "America/Ojinaga", "America/Panama", "America/Pangnirtung", "America/Paramaribo", "America/Phoenix", "America/Port-au-Prince", "America/Port_of_Spain", "America/Porto_Velho", "America/Puerto_Rico", "America/Rainy_River", "America/Rankin_Inlet", "America/Recife", "America/Regina", "America/Resolute", "America/Rio_Branco", "America/Santa_Isabel", "America/Santarem", "America/Santiago", "America/Santo_Domingo", "America/Sao_Paulo", "America/Scoresbysund", "America/Sitka", "America/St_Barthelemy", "America/St_Johns", "America/St_Kitts", "America/St_Lucia", "America/St_Thomas", "America/St_Vincent", "America/Swift_Current", "America/Tegucigalpa", "America/Thule", "America/Thunder_Bay", "America/Tijuana", "America/Toronto", "America/Tortola", "America/Vancouver", "America/Whitehorse", "America/Winnipeg", "America/Yakutat", "America/Yellowknife", "Antarctica/Casey", "Antarctica/Davis", "Antarctica/DumontDUrville", "Antarctica/Macquarie", "Antarctica/Mawson", "Antarctica/McMurdo", "Antarctica/Palmer", "Antarctica/Rothera", "Antarctica/Syowa", "Antarctica/Troll", "Antarctica/Vostok", "Arctic/Longyearbyen", "Asia/Aden", "Asia/Almaty", "Asia/Amman", "Asia/Anadyr", "Asia/Aqtau", "Asia/Aqtobe", "Asia/Ashgabat", "Asia/Baghdad", "Asia/Bahrain", "Asia/Baku", "Asia/Bangkok", "Asia/Beirut", "Asia/Bishkek", "Asia/Brunei", "Asia/Chita", "Asia/Choibalsan", "Asia/Colombo", "Asia/Damascus", "Asia/Dhaka", "Asia/Dili", "Asia/Dubai", "Asia/Dushanbe", "Asia/Gaza", "Asia/Hebron", "Asia/Ho_Chi_Minh", "Asia/Hong_Kong", "Asia/Hovd", "Asia/Irkutsk", "Asia/Jakarta", "Asia/Jayapura", "Asia/Jerusalem", "Asia/Kabul", "Asia/Kamchatka", "Asia/Karachi", "Asia/Kathmandu", "Asia/Khandyga", "Asia/Kolkata", "Asia/Krasnoyarsk", "Asia/Kuala_Lumpur", "Asia/Kuching", "Asia/Kuwait", "Asia/Macau", "Asia/Magadan", "Asia/Makassar", "Asia/Manila", "Asia/Muscat", "Asia/Nicosia", "Asia/Novokuznetsk", "Asia/Novosibirsk", "Asia/Omsk", "Asia/Oral", "Asia/Phnom_Penh", "Asia/Pontianak", "Asia/Pyongyang", "Asia/Qatar", "Asia/Qyzylorda", "Asia/Rangoon", "Asia/Riyadh", "Asia/Sakhalin", "Asia/Samarkand", "Asia/Seoul", "Asia/Shanghai", "Asia/Singapore", "Asia/Srednekolymsk", "Asia/Taipei", "Asia/Tashkent", "Asia/Tbilisi", "Asia/Tehran", "Asia/Thimphu", "Asia/Tokyo", "Asia/Ulaanbaatar", "Asia/Urumqi", "Asia/Ust-Nera", "Asia/Vientiane", "Asia/Vladivostok", "Asia/Yakutsk", "Asia/Yekaterinburg", "Asia/Yerevan", "Atlantic/Azores", "Atlantic/Bermuda", "Atlantic/Canary", "Atlantic/Cape_Verde", "Atlantic/Faroe", "Atlantic/Madeira", "Atlantic/Reykjavik", "Atlantic/South_Georgia", "Atlantic/St_Helena", "Atlantic/Stanley", "Australia/Adelaide", "Australia/Brisbane", "Australia/Broken_Hill", "Australia/Currie", "Australia/Darwin", "Australia/Eucla", "Australia/Hobart", "Australia/Lindeman", "Australia/Lord_Howe", "Australia/Melbourne", "Australia/Perth", "Australia/Sydney", "Europe/Amsterdam", "Europe/Andorra", "Europe/Athens", "Europe/Belgrade", "Europe/Berlin", "Europe/Bratislava", "Europe/Brussels", "Europe/Bucharest", "Europe/Budapest", "Europe/Busingen", "Europe/Chisinau", "Europe/Copenhagen", "Europe/Dublin", "Europe/Gibraltar", "Europe/Guernsey", "Europe/Helsinki", "Europe/Isle_of_Man", "Europe/Istanbul", "Europe/Jersey", "Europe/Kaliningrad", "Europe/Kiev", "Europe/Lisbon", "Europe/Ljubljana", "Europe/London", "Europe/Luxembourg", "Europe/Madrid", "Europe/Malta", "Europe/Mariehamn", "Europe/Minsk", "Europe/Monaco", "Europe/Moscow", "Europe/Oslo", "Europe/Paris", "Europe/Podgorica", "Europe/Prague", "Europe/Riga", "Europe/Rome", "Europe/Samara", "Europe/San_Marino", "Europe/Sarajevo", "Europe/Simferopol", "Europe/Skopje", "Europe/Sofia", "Europe/Stockholm", "Europe/Tallinn", "Europe/Tirane", "Europe/Uzhgorod", "Europe/Vaduz", "Europe/Vatican", "Europe/Vienna", "Europe/Vilnius", "Europe/Volgograd", "Europe/Warsaw", "Europe/Zagreb", "Europe/Zaporozhye", "Europe/Zurich", "Indian/Antananarivo", "Indian/Chagos", "Indian/Christmas", "Indian/Cocos", "Indian/Comoro", "Indian/Kerguelen", "Indian/Mahe", "Indian/Maldives", "Indian/Mauritius", "Indian/Mayotte", "Indian/Reunion", "Pacific/Apia", "Pacific/Auckland", "Pacific/Bougainville", "Pacific/Chatham", "Pacific/Chuuk", "Pacific/Easter", "Pacific/Efate", "Pacific/Enderbury", "Pacific/Fakaofo", "Pacific/Fiji", "Pacific/Funafuti", "Pacific/Galapagos", "Pacific/Gambier", "Pacific/Guadalcanal", "Pacific/Guam", "Pacific/Honolulu", "Pacific/Johnston", "Pacific/Kiritimati", "Pacific/Kosrae", "Pacific/Kwajalein", "Pacific/Majuro", "Pacific/Marquesas", "Pacific/Midway", "Pacific/Nauru", "Pacific/Niue", "Pacific/Norfolk", "Pacific/Noumea", "Pacific/Pago_Pago", "Pacific/Palau", "Pacific/Pitcairn", "Pacific/Pohnpei", "Pacific/Port_Moresby", "Pacific/Rarotonga", "Pacific/Saipan", "Pacific/Tahiti", "Pacific/Tarawa", "Pacific/Tongatapu", "Pacific/Wake", "Pacific/Wallis"];
|
|
2
|
+
//# sourceMappingURL=timezones.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timezones.d.ts","sourceRoot":"","sources":["../../../src/data/timezones.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,y+PAkaZ,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from './createConfigBuilder.ts';
|
|
2
|
+
export * from './createConfigParser.ts';
|
|
3
|
+
export * from './createConfigReader.ts';
|
|
4
|
+
export * from './data/countryCodes.ts';
|
|
5
|
+
export * from './data/countryNames.ts';
|
|
6
|
+
export * from './data/distanceUnits.ts';
|
|
7
|
+
export * from './data/languageCodes.ts';
|
|
8
|
+
export * from './data/timezones.ts';
|
|
9
|
+
export * from './types.ts';
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AACpC,cAAc,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cloneNonEnumerableValues.d.ts","sourceRoot":"","sources":["../../../src/transformers/cloneNonEnumerableValues.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyC,KAAK,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAKrG,eAAO,MAAM,wBAAwB,EAAE,0BAkBtC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"removeDisabledSlices.d.ts","sourceRoot":"","sources":["../../../src/transformers/removeDisabledSlices.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,0BAA0B,EAChC,MAAM,aAAa,CAAC;AAGrB,eAAO,MAAM,oBAAoB,EAAE,0BAalC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runExperiments.d.ts","sourceRoot":"","sources":["../../../src/transformers/runExperiments.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC5B,MAAM,aAAa,CAAC;AAErB,eAAO,MAAM,cAAc,aACd,sBAAsB,KAAG,sBAcnC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setupExperiments.d.ts","sourceRoot":"","sources":["../../../src/transformers/setupExperiments.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC5B,MAAM,aAAa,CAAC;AAErB,eAAO,MAAM,gBAAgB,aAChB,wBAAwB,KAAG,sBAmBrC,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { List } from 'ts-toolbelt';
|
|
2
|
+
import type { Includes, Join } from 'type-fest';
|
|
3
|
+
export type AnyRecord = Record<string, any>;
|
|
4
|
+
export type Buckets<Config extends AnyRecord> = Record<string, Experiment<Config>>;
|
|
5
|
+
export interface ConfigParserOptions {
|
|
6
|
+
experimentsCallback?: RunExperimentsCallback;
|
|
7
|
+
}
|
|
8
|
+
export interface Experiment<Config extends AnyRecord> {
|
|
9
|
+
action?: TransformConfigHandlerAction;
|
|
10
|
+
value?: Config;
|
|
11
|
+
}
|
|
12
|
+
export declare enum NonEmumeralProperties {
|
|
13
|
+
CALLBACKS = "__callbacks",
|
|
14
|
+
DISABLED = "__disabled",
|
|
15
|
+
EXPERIMENT = "__experiment",
|
|
16
|
+
ZCB = "__zcb"
|
|
17
|
+
}
|
|
18
|
+
export type Path<Config extends object> = Join<Leaves<Config>, '.'>;
|
|
19
|
+
export type RunExperimentsCallback = (id: string) => Promise<string>;
|
|
20
|
+
export type Scope<Config extends object> = Join<Paths<Config>, '.'>;
|
|
21
|
+
export type SetupExperimentsCallback = <Config extends AnyRecord>(id: string, clone: Config, config: Config) => Promise<Buckets<Config>>;
|
|
22
|
+
export type TransformConfigHandler = <Config extends AnyRecord>(clone: Config, config: Config) => TransformConfigHandlerReturnType<Config> | Promise<TransformConfigHandlerReturnType<Config>>;
|
|
23
|
+
export type TransformConfigHandlerSync = <Config extends AnyRecord>(clone: Config, config: Config) => TransformConfigHandlerReturnType<Config>;
|
|
24
|
+
export declare enum TransformConfigHandlerAction {
|
|
25
|
+
DELETE_NODE = "deleteNode",
|
|
26
|
+
SKIP_NODE = "skipNode"
|
|
27
|
+
}
|
|
28
|
+
export interface TransformConfigHandlerReturnType<Config extends AnyRecord> {
|
|
29
|
+
action?: TransformConfigHandlerAction;
|
|
30
|
+
value?: Config;
|
|
31
|
+
}
|
|
32
|
+
export interface WriteConfigOptions {
|
|
33
|
+
experimentsCallback?: SetupExperimentsCallback;
|
|
34
|
+
outputFile: string;
|
|
35
|
+
}
|
|
36
|
+
export type Leaves<T, Path extends string[] = []> = T extends string ? Path : {
|
|
37
|
+
[K in keyof T & string]: Leaves<T[K], [...Path, K]>;
|
|
38
|
+
}[keyof T & string];
|
|
39
|
+
export type Paths<T, Path extends string[] = []> = T extends string ? Path : {
|
|
40
|
+
[K in keyof T & string]: T[K] extends object ? Paths<T[K], [...Path, K]> : Path;
|
|
41
|
+
}[keyof T & string];
|
|
42
|
+
export type LeavesScopeDiffs<T1 extends readonly string[][], T2 extends string[]> = {
|
|
43
|
+
[K1 in keyof T1]: List.Length<List.Intersect<T1[K1], T2, '<-contains'>> extends 1 ? List.Length<T1[K1]> extends 1 ? Includes<T2, T1[K1][0]> extends false ? T1[K1] : never : List.Diff<T1[K1], T2> : never;
|
|
44
|
+
}[number];
|
|
45
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"arrayHasInvalidDefaults.d.ts","sourceRoot":"","sources":["../../../src/utils/arrayHasInvalidDefaults.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE/C,eAAO,MAAM,uBAAuB,uBAAwB,WAAW,wBAGtE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"importValidateTransformWriteConfig.d.ts","sourceRoot":"","sources":["../../../src/utils/importValidateTransformWriteConfig.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAI1C,eAAO,MAAM,kCAAkC,cAClC,MAAM,cACL,MAAM,WACT,QAAQ,2BACQ,MAAM,SAiDhC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isDerivedValueCallback.d.ts","sourceRoot":"","sources":["../../../src/utils/isDerivedValueCallback.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,sBAAsB,iBAAkB,GAAG,KAAK,GAAG,SAAS,GAAG,eAC/C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isInvalidPropertyOverride.d.ts","sourceRoot":"","sources":["../../../src/utils/isInvalidPropertyOverride.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,yBAAyB,kBAAmB,GAAG,gCAClB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isPropertyReservedWord.d.ts","sourceRoot":"","sources":["../../../src/utils/isPropertyReservedWord.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,aAU5B,CAAC;AAEH,eAAO,MAAM,sBAAsB,iBAAkB,MAAM,YAAwC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isSchemaValid.d.ts","sourceRoot":"","sources":["../../../src/utils/isSchemaValid.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE/C,eAAO,MAAM,aAAa,WAAY,WAAW,YAA6B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isValidPropertyDefinition.d.ts","sourceRoot":"","sources":["../../../src/utils/isValidPropertyDefinition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAEtE,eAAO,MAAM,yBAAyB,uBAChB,qBAAqB,GAAG,SAAS,sCACuB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isValidValue.d.ts","sourceRoot":"","sources":["../../../src/utils/isValidValue.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY,UAAW,OAAO,qBAAc,OAwBxD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"objectHasInvalidDefaults.d.ts","sourceRoot":"","sources":["../../../src/utils/objectHasInvalidDefaults.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE/C,eAAO,MAAM,wBAAwB,uBAAwB,WAAW,wBAEqC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recordHasInvalidDefaults.d.ts","sourceRoot":"","sources":["../../../src/utils/recordHasInvalidDefaults.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE/C,eAAO,MAAM,wBAAwB,uBAAwB,WAAW,wBAGlB,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { type AnyRecord, type TransformConfigHandler, type TransformConfigHandlerSync } from '../types.ts';
|
|
2
|
+
export declare const transformConfig: <Config extends AnyRecord>(config: Config, handler?: TransformConfigHandler | TransformConfigHandler[]) => Promise<Config>;
|
|
3
|
+
export declare const transformConfigSync: <Config extends AnyRecord>(config: Config, handler?: TransformConfigHandlerSync | TransformConfigHandlerSync[]) => Config;
|
|
4
|
+
//# sourceMappingURL=transformConfig.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transformConfig.d.ts","sourceRoot":"","sources":["../../../src/utils/transformConfig.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,SAAS,EACd,KAAK,sBAAsB,EAE3B,KAAK,0BAA0B,EAChC,MAAM,aAAa,CAAC;AAoBrB,eAAO,MAAM,eAAe,uDAEjB,sBAAsB,GAAG,sBAAsB,EAAE,oBAkC3D,CAAC;AAmBF,eAAO,MAAM,mBAAmB,uDAErB,0BAA0B,GAAG,0BAA0B,EAAE,WAkCnE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transformWriteConfig.d.ts","sourceRoot":"","sources":["../../../src/utils/transformWriteConfig.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAA0B,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAG9E,eAAO,MAAM,oBAAoB,+EAEM,kBAAkB,kBAoBxD,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zcb",
|
|
3
3
|
"description": "Build configs with type safety from zod schema.",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.10",
|
|
5
5
|
"author": "Dylan Aubrey",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://github.com/badbatch/zod-config-builder",
|
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
"commit": "commit",
|
|
121
121
|
"compile": "pnpm run /^compile:.*/",
|
|
122
122
|
"compile:main": "rollup -c ./rollup.config.cjs",
|
|
123
|
-
"compile:types": "tsc --project ./tsconfig.json",
|
|
123
|
+
"compile:types": "tsc --project ./tsconfig.build.json",
|
|
124
124
|
"cut:changelog": "changelog",
|
|
125
125
|
"cut:post-version": "pnpm run build",
|
|
126
126
|
"lint": "eslint . --ext .ts,.cjs",
|