@nmtjs/type 0.15.0-beta.2 → 0.15.0-beta.3

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 (67) hide show
  1. package/dist/index.d.ts +7 -0
  2. package/dist/index.js +1 -0
  3. package/dist/index.js.map +1 -0
  4. package/dist/temporal/global.d.ts +9 -0
  5. package/dist/temporal/global.js +1 -0
  6. package/dist/temporal/global.js.map +1 -0
  7. package/dist/temporal/polyfill.d.ts +8 -0
  8. package/dist/temporal/polyfill.js +1 -0
  9. package/dist/temporal/polyfill.js.map +1 -0
  10. package/dist/types/_convert.d.ts +5 -0
  11. package/dist/types/_convert.js +1 -0
  12. package/dist/types/_convert.js.map +1 -0
  13. package/dist/types/_type.d.ts +33 -0
  14. package/dist/types/_type.js +1 -0
  15. package/dist/types/_type.js.map +1 -0
  16. package/dist/types/_utils.d.ts +15 -0
  17. package/dist/types/_utils.js +1 -0
  18. package/dist/types/_utils.js.map +1 -0
  19. package/dist/types/any.d.ts +6 -0
  20. package/dist/types/any.js +1 -0
  21. package/dist/types/any.js.map +1 -0
  22. package/dist/types/array.d.ts +14 -0
  23. package/dist/types/array.js +1 -0
  24. package/dist/types/array.js.map +1 -0
  25. package/dist/types/base.d.ts +65 -0
  26. package/dist/types/base.js +1 -0
  27. package/dist/types/base.js.map +1 -0
  28. package/dist/types/boolean.d.ts +6 -0
  29. package/dist/types/boolean.js +1 -0
  30. package/dist/types/boolean.js.map +1 -0
  31. package/dist/types/custom.d.ts +21 -0
  32. package/dist/types/custom.js +1 -0
  33. package/dist/types/custom.js.map +1 -0
  34. package/dist/types/date.d.ts +7 -0
  35. package/dist/types/date.js +1 -0
  36. package/dist/types/date.js.map +1 -0
  37. package/dist/types/enum.d.ts +10 -0
  38. package/dist/types/enum.js +1 -0
  39. package/dist/types/enum.js.map +1 -0
  40. package/dist/types/literal.d.ts +9 -0
  41. package/dist/types/literal.js +1 -0
  42. package/dist/types/literal.js.map +1 -0
  43. package/dist/types/never.d.ts +6 -0
  44. package/dist/types/never.js +1 -0
  45. package/dist/types/never.js.map +1 -0
  46. package/dist/types/null.d.ts +7 -0
  47. package/dist/types/null.js +1 -0
  48. package/dist/types/null.js.map +1 -0
  49. package/dist/types/number.d.ts +23 -0
  50. package/dist/types/number.js +1 -0
  51. package/dist/types/number.js.map +1 -0
  52. package/dist/types/object.d.ts +79 -0
  53. package/dist/types/object.js +1 -0
  54. package/dist/types/object.js.map +1 -0
  55. package/dist/types/string.d.ts +22 -0
  56. package/dist/types/string.js +1 -0
  57. package/dist/types/string.js.map +1 -0
  58. package/dist/types/temporal.d.ts +26 -0
  59. package/dist/types/temporal.js +1 -0
  60. package/dist/types/temporal.js.map +1 -0
  61. package/dist/types/tuple.d.ts +14 -0
  62. package/dist/types/tuple.js +1 -0
  63. package/dist/types/tuple.js.map +1 -0
  64. package/dist/types/union.d.ts +42 -0
  65. package/dist/types/union.js +1 -0
  66. package/dist/types/union.js.map +1 -0
  67. package/package.json +4 -4
@@ -0,0 +1,7 @@
1
+ import * as type from './types/_type.ts';
2
+ export * from './types/_convert.ts';
3
+ export * from './types/_utils.ts';
4
+ export * from './types/base.ts';
5
+ export { type, type as t };
6
+ export default type;
7
+ export declare function registerDefaultLocale(): void;
package/dist/index.js CHANGED
@@ -9,3 +9,4 @@ export default type;
9
9
  export function registerDefaultLocale() {
10
10
  config(en());
11
11
  }
12
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAA;AAChC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAEjC,OAAO,KAAK,IAAI,MAAM,kBAAkB,CAAA;AAExC,cAAc,qBAAqB,CAAA;AACnC,cAAc,mBAAmB,CAAA;AACjC,cAAc,iBAAiB,CAAA;AAC/B,OAAO,EAAE,IAAI,EAAE,IAAI,IAAI,CAAC,EAAE,CAAA;AAC1B,eAAe,IAAI,CAAA;AAEnB,MAAM,UAAU,qBAAqB;IACnC,MAAM,CAAC,EAAE,EAAE,CAAC,CAAA;AACd,CAAC"}
@@ -0,0 +1,9 @@
1
+ import 'temporal-spec/global';
2
+ import { DurationType, PlainDateTimeType, PlainDateType, PlainMonthDayType, PlainTimeType, PlainYearMonthType, ZonedDateTimeType } from '../types/temporal.ts';
3
+ export declare const plainDate: () => PlainDateType;
4
+ export declare const plainDatetime: () => PlainDateTimeType;
5
+ export declare const plainTime: () => PlainTimeType;
6
+ export declare const zonedDatetime: () => ZonedDateTimeType;
7
+ export declare const duration: () => DurationType;
8
+ export declare const plainYearMonth: () => PlainYearMonthType;
9
+ export declare const plainMonthDay: () => PlainMonthDayType;
@@ -7,3 +7,4 @@ export const zonedDatetime = ZonedDateTimeType.factory.bind(ZonedDateTimeType, T
7
7
  export const duration = DurationType.factory.bind(DurationType, Temporal);
8
8
  export const plainYearMonth = PlainYearMonthType.factory.bind(PlainYearMonthType, Temporal);
9
9
  export const plainMonthDay = PlainMonthDayType.factory.bind(PlainMonthDayType, Temporal);
10
+ //# sourceMappingURL=global.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"global.js","sourceRoot":"","sources":["../../src/temporal/global.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAA;AAE7B,OAAO,EACL,YAAY,EACZ,iBAAiB,EACjB,aAAa,EACb,iBAAiB,EACjB,aAAa,EACb,kBAAkB,EAClB,iBAAiB,GAClB,MAAM,sBAAsB,CAAA;AAE7B,MAAM,CAAC,MAAM,SAAS,GAAwB,aAAa,CAAC,OAAO,CAAC,IAAI,CACtE,aAAa,EACb,QAAQ,CACT,CAAA;AACD,MAAM,CAAC,MAAM,aAAa,GACxB,iBAAiB,CAAC,OAAO,CAAC,IAAI,CAAC,iBAAiB,EAAE,QAAQ,CAAC,CAAA;AAC7D,MAAM,CAAC,MAAM,SAAS,GAAwB,aAAa,CAAC,OAAO,CAAC,IAAI,CACtE,aAAa,EACb,QAAQ,CACT,CAAA;AACD,MAAM,CAAC,MAAM,aAAa,GACxB,iBAAiB,CAAC,OAAO,CAAC,IAAI,CAAC,iBAAiB,EAAE,QAAQ,CAAC,CAAA;AAC7D,MAAM,CAAC,MAAM,QAAQ,GAAuB,YAAY,CAAC,OAAO,CAAC,IAAI,CACnE,YAAY,EACZ,QAAQ,CACT,CAAA;AACD,MAAM,CAAC,MAAM,cAAc,GACzB,kBAAkB,CAAC,OAAO,CAAC,IAAI,CAAC,kBAAkB,EAAE,QAAQ,CAAC,CAAA;AAC/D,MAAM,CAAC,MAAM,aAAa,GACxB,iBAAiB,CAAC,OAAO,CAAC,IAAI,CAAC,iBAAiB,EAAE,QAAQ,CAAC,CAAA"}
@@ -0,0 +1,8 @@
1
+ import { DurationType, PlainDateTimeType, PlainDateType, PlainMonthDayType, PlainTimeType, PlainYearMonthType, ZonedDateTimeType } from '../types/temporal.ts';
2
+ export declare const plainDate: () => PlainDateType;
3
+ export declare const plainDatetime: () => PlainDateTimeType;
4
+ export declare const plainTime: () => PlainTimeType;
5
+ export declare const zonedDatetime: () => ZonedDateTimeType;
6
+ export declare const duration: () => DurationType;
7
+ export declare const plainYearMonth: () => PlainYearMonthType;
8
+ export declare const plainMonthDay: () => PlainMonthDayType;
@@ -7,3 +7,4 @@ export const zonedDatetime = ZonedDateTimeType.factory.bind(ZonedDateTimeType, T
7
7
  export const duration = DurationType.factory.bind(DurationType, Temporal);
8
8
  export const plainYearMonth = PlainYearMonthType.factory.bind(PlainYearMonthType, Temporal);
9
9
  export const plainMonthDay = PlainMonthDayType.factory.bind(PlainMonthDayType, Temporal);
10
+ //# sourceMappingURL=polyfill.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"polyfill.js","sourceRoot":"","sources":["../../src/temporal/polyfill.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAE5C,OAAO,EACL,YAAY,EACZ,iBAAiB,EACjB,aAAa,EACb,iBAAiB,EACjB,aAAa,EACb,kBAAkB,EAClB,iBAAiB,GAClB,MAAM,sBAAsB,CAAA;AAE7B,MAAM,CAAC,MAAM,SAAS,GAAG,aAAa,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,EAAE,QAAQ,CAAC,CAAA;AAC5E,MAAM,CAAC,MAAM,aAAa,GAAG,iBAAiB,CAAC,OAAO,CAAC,IAAI,CACzD,iBAAiB,EACjB,QAAQ,CACT,CAAA;AACD,MAAM,CAAC,MAAM,SAAS,GAAG,aAAa,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,EAAE,QAAQ,CAAC,CAAA;AAC5E,MAAM,CAAC,MAAM,aAAa,GAAG,iBAAiB,CAAC,OAAO,CAAC,IAAI,CACzD,iBAAiB,EACjB,QAAQ,CACT,CAAA;AACD,MAAM,CAAC,MAAM,QAAQ,GAAG,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC,YAAY,EAAE,QAAQ,CAAC,CAAA;AACzE,MAAM,CAAC,MAAM,cAAc,GAAG,kBAAkB,CAAC,OAAO,CAAC,IAAI,CAC3D,kBAAkB,EAClB,QAAQ,CACT,CAAA;AACD,MAAM,CAAC,MAAM,aAAa,GAAG,iBAAiB,CAAC,OAAO,CAAC,IAAI,CACzD,iBAAiB,EACjB,QAAQ,CACT,CAAA"}
@@ -0,0 +1,5 @@
1
+ import type { core } from 'zod/mini';
2
+ import { toJSONSchema } from 'zod/mini';
3
+ import type { BaseType } from './base.ts';
4
+ export declare function typeToString(type: BaseType): string;
5
+ export declare function typeToJsonSchema(type: BaseType, mode: 'encode' | 'decode', options?: Parameters<typeof toJSONSchema>[1]): core.JSONSchema.JSONSchema;
@@ -53,3 +53,4 @@ export function typeToJsonSchema(type, mode, options) {
53
53
  const zodType = { encode: type.encodeZodType, decode: type.decodeZodType }[mode];
54
54
  return toJSONSchema(zodType, options);
55
55
  }
56
+ //# sourceMappingURL=_convert.js.map
@@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AC;AAED,MAAM,UAAU,gBAAgB,CAC9B,IAAc,EACd,IAAyB,EACzB,OAA4C;IAE5C,MAAM,OAAO,GAAG,EAAE,MAAM,EAAE,IAAI,CAAC,aAAa,EAAE,MAAM,EAAE,IAAI,CAAC,aAAa,EAAE,CACxE,IAAI,CACL,CAAA;IACD,OAAO,YAAY,CAAC,OAAO,EAAE,OAAO,CAAC,CAAA;AACvC,CAAC"}
@@ -0,0 +1,33 @@
1
+ import type { BaseTypeAny } from './base.ts';
2
+ export * from './any.ts';
3
+ export * from './array.ts';
4
+ export * from './boolean.ts';
5
+ export * from './custom.ts';
6
+ export * from './date.ts';
7
+ export * from './enum.ts';
8
+ export * from './literal.ts';
9
+ export * from './never.ts';
10
+ export * from './null.ts';
11
+ export * from './number.ts';
12
+ export * from './object.ts';
13
+ export * from './string.ts';
14
+ export * from './tuple.ts';
15
+ export * from './union.ts';
16
+ export declare namespace infer {
17
+ namespace decode {
18
+ type input<T extends BaseTypeAny> = T['decodeZodType']['_zod']['input'];
19
+ type output<T extends BaseTypeAny> = T['decodeZodType']['_zod']['output'];
20
+ }
21
+ namespace encode {
22
+ type input<T extends BaseTypeAny> = T['encodeZodType']['_zod']['input'];
23
+ type output<T extends BaseTypeAny> = T['encodeZodType']['_zod']['output'];
24
+ }
25
+ namespace decodeRaw {
26
+ type input<T extends BaseTypeAny> = T['decodeRawZodType']['_zod']['input'];
27
+ type output<T extends BaseTypeAny> = T['decodeRawZodType']['_zod']['output'];
28
+ }
29
+ namespace encodeRaw {
30
+ type input<T extends BaseTypeAny> = T['encodeRawZodType']['_zod']['input'];
31
+ type output<T extends BaseTypeAny> = T['encodeRawZodType']['_zod']['output'];
32
+ }
33
+ }
@@ -12,3 +12,4 @@ export * from "./object.js";
12
12
  export * from "./string.js";
13
13
  export * from "./tuple.js";
14
14
  export * from "./union.js";
15
+ //# sourceMappingURL=_type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_type.js","sourceRoot":"","sources":["../../src/types/_type.ts"],"names":[],"mappings":"AAEA,cAAc,UAAU,CAAA;AACxB,cAAc,YAAY,CAAA;AAC1B,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA;AAC3B,cAAc,WAAW,CAAA;AACzB,cAAc,WAAW,CAAA;AACzB,cAAc,cAAc,CAAA;AAC5B,cAAc,YAAY,CAAA;AAC1B,cAAc,WAAW,CAAA;AACzB,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA;AAC3B,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA"}
@@ -0,0 +1,15 @@
1
+ import type { core, ZodMiniType } from 'zod/mini';
2
+ import type { BaseType } from './base.ts';
3
+ export declare const PlainType: unique symbol;
4
+ export type PlainType = typeof PlainType;
5
+ export type ZodPlainType<T extends ZodMiniType<any, any, any>> = T & ZodMiniType<T['_zod']['output'] & {
6
+ [PlainType]?: true;
7
+ }, T['_zod']['input'] & {
8
+ [PlainType]?: true;
9
+ }, core.$ZodTypeInternals<T['_zod']['output'] & {
10
+ [PlainType]?: true;
11
+ }, T['_zod']['input'] & {
12
+ [PlainType]?: true;
13
+ }>>;
14
+ export declare const zodPlainType: <T extends ZodMiniType<any, any, any>>(type: T) => ZodPlainType<T>;
15
+ export type AnyCompatibleType<Encoded = any, Decoded = any> = BaseType<ZodMiniType<any, Decoded>, ZodMiniType<any, Encoded>>;
@@ -1,2 +1,3 @@
1
1
  export const PlainType = Symbol('PlainType');
2
2
  export const zodPlainType = (type) => type;
3
+ //# sourceMappingURL=_utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_utils.js","sourceRoot":"","sources":["../../src/types/_utils.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,MAAM,SAAS,GAAkB,MAAM,CAAC,WAAW,CAAC,CAAA;AAa3D,MAAM,CAAC,MAAM,YAAY,GAAG,CAAuC,IAAO,EAAE,EAAE,CAC5E,IAAuB,CAAA"}
@@ -0,0 +1,6 @@
1
+ import type { ZodMiniAny } from 'zod/mini';
2
+ import { BaseType } from './base.ts';
3
+ export declare class AnyType extends BaseType<ZodMiniAny> {
4
+ static factory(): AnyType;
5
+ }
6
+ export declare const any: typeof AnyType.factory;
package/dist/types/any.js CHANGED
@@ -6,3 +6,4 @@ export class AnyType extends BaseType {
6
6
  }
7
7
  }
8
8
  export const any = AnyType.factory;
9
+ //# sourceMappingURL=any.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"any.js","sourceRoot":"","sources":["../../src/types/any.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,IAAI,MAAM,EAAE,MAAM,UAAU,CAAA;AAExC,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAA;AAEpC,MAAM,OAAO,OAAQ,SAAQ,QAAoB;IAC/C,MAAM,CAAC,OAAO;QACZ,OAAO,IAAI,OAAO,CAAC,EAAE,aAAa,EAAE,MAAM,EAAE,EAAE,CAAC,CAAA;IACjD,CAAC;CACF;AAED,MAAM,CAAC,MAAM,GAAG,GAAG,OAAO,CAAC,OAAO,CAAA"}
@@ -0,0 +1,14 @@
1
+ import type { core, ZodMiniArray } from 'zod/mini';
2
+ import type { ZodPlainType } from './_utils.ts';
3
+ import { BaseType } from './base.ts';
4
+ type Check = core.CheckFn<any[]> | core.$ZodCheck<any[]>;
5
+ export declare class ArrayType<T extends BaseType = BaseType> extends BaseType<ZodMiniArray<T['encodeZodType']>, ZodMiniArray<T['decodeZodType']>, {
6
+ element: T;
7
+ }, ZodPlainType<ZodMiniArray<T['encodeZodType']>>, ZodPlainType<ZodMiniArray<T['encodeZodType']>>> {
8
+ static factory<T extends BaseType>(element: T, ...checks: Check[]): ArrayType<T>;
9
+ min(value: number): ArrayType<T>;
10
+ max(value: number): ArrayType<T>;
11
+ length(value: number): ArrayType<T>;
12
+ }
13
+ export declare const array: typeof ArrayType.factory;
14
+ export {};
@@ -23,3 +23,4 @@ export class ArrayType extends BaseType {
23
23
  }
24
24
  }
25
25
  export const array = ArrayType.factory;
26
+ //# sourceMappingURL=array.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"array.js","sourceRoot":"","sources":["../../src/types/array.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,KAAK,IAAI,QAAQ,EAAE,MAAM,UAAU,CAAA;AAG1E,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAA;AAIpC,MAAM,OAAO,SAAyC,SAAQ,QAM7D;IACC,MAAM,CAAC,OAAO,CAAqB,OAAU,EAAE,GAAG,MAAe;QAC/D,OAAO,IAAI,SAAS,CAAI;YACtB,aAAa,EAAE,QAAQ,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,KAAK,CAAC,GAAG,MAAM,CAAC;YAC/D,aAAa,EAAE,QAAQ,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,KAAK,CAAC,GAAG,MAAM,CAAC;YAC/D,MAAM,EAAE,EAAE,MAAM,EAAE;YAClB,KAAK,EAAE,EAAE,OAAO,EAAE;SACnB,CAAC,CAAA;IACJ,CAAC;IAED,GAAG,CAAC,KAAa;QACf,MAAM,KAAK,GAAG,SAAS,CAAC,KAAK,CAAC,CAAA;QAC9B,OAAO,SAAS,CAAC,OAAO,CACtB,IAAI,CAAC,KAAK,CAAC,OAAO,EAClB,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,EACrB,KAAK,CACN,CAAA;IACH,CAAC;IAED,GAAG,CAAC,KAAa;QACf,MAAM,KAAK,GAAG,SAAS,CAAC,KAAK,CAAC,CAAA;QAC9B,OAAO,SAAS,CAAC,OAAO,CACtB,IAAI,CAAC,KAAK,CAAC,OAAO,EAClB,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,EACrB,KAAK,CACN,CAAA;IACH,CAAC;IAED,MAAM,CAAC,KAAa;QAClB,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,CAAA;QAC3B,OAAO,SAAS,CAAC,OAAO,CACtB,IAAI,CAAC,KAAK,CAAC,OAAO,EAClB,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,EACrB,KAAK,CACN,CAAA;IACH,CAAC;CACF;AAED,MAAM,CAAC,MAAM,KAAK,GAAG,SAAS,CAAC,OAAO,CAAA"}
@@ -0,0 +1,65 @@
1
+ import type { ZodMiniAny, ZodMiniArray, ZodMiniBoolean, ZodMiniDefault, ZodMiniEnum, ZodMiniIntersection, ZodMiniLiteral, ZodMiniNever, ZodMiniNullable, ZodMiniNumber, ZodMiniObject, ZodMiniOptional, ZodMiniRecord, ZodMiniString, ZodMiniType, ZodMiniUnion } from 'zod/mini';
2
+ import { core } from 'zod/mini';
3
+ export type PrimitiveValueType = string | number | boolean | null;
4
+ export type PrimitiveZodType = ZodMiniNever | ZodMiniDefault | ZodMiniNullable | ZodMiniOptional | ZodMiniString | ZodMiniObject | ZodMiniAny | ZodMiniArray | ZodMiniBoolean | ZodMiniNumber | ZodMiniEnum<any> | ZodMiniLiteral<PrimitiveValueType> | ZodMiniUnion | ZodMiniIntersection | ZodMiniRecord;
5
+ export type SimpleZodType = ZodMiniType;
6
+ export type ZodType = SimpleZodType | ZodMiniType;
7
+ export type TypeProps = Record<string, any>;
8
+ export type TypeMetadata<T = any> = {
9
+ id?: string;
10
+ description?: string;
11
+ examples?: T[];
12
+ title?: string;
13
+ };
14
+ export type TypeParams = {
15
+ encode?: (value: any) => any;
16
+ metadata?: TypeMetadata;
17
+ checks: Array<core.CheckFn<any> | core.$ZodCheck<any>>;
18
+ };
19
+ export type DefaultTypeParams = {
20
+ encode?: TypeParams['encode'];
21
+ metadata?: TypeMetadata;
22
+ };
23
+ export type BaseTypeAny<EncodedZodType extends SimpleZodType = SimpleZodType, DecodedZodType extends ZodType = ZodMiniType> = BaseType<EncodedZodType, DecodedZodType, TypeProps>;
24
+ export declare const typesRegistry: core.$ZodRegistry<TypeMetadata<any>, core.$ZodType<unknown, unknown, core.$ZodTypeInternals<unknown, unknown>>>;
25
+ export declare const NeemataTypeError: core.$constructor<core.$ZodError<unknown>, core.$ZodIssue[]>;
26
+ export type NeemataTypeError = core.$ZodError;
27
+ export declare abstract class BaseType<EncodeZodType extends SimpleZodType = SimpleZodType, DecodeZodType extends ZodType = EncodeZodType, Props extends TypeProps = TypeProps, RawEncodeZodType extends SimpleZodType = EncodeZodType, RawDecodeZodType extends ZodType = DecodeZodType> {
28
+ readonly encodeZodType: EncodeZodType;
29
+ readonly decodeZodType: DecodeZodType;
30
+ readonly encodeRawZodType: RawEncodeZodType;
31
+ readonly decodeRawZodType: RawDecodeZodType;
32
+ readonly props: Props;
33
+ readonly params: TypeParams;
34
+ constructor({ encodeZodType, decodeZodType, props, params, }: {
35
+ encodeZodType: EncodeZodType;
36
+ decodeZodType?: DecodeZodType;
37
+ props?: Props;
38
+ params?: Partial<TypeParams>;
39
+ });
40
+ optional(): OptionalType<this>;
41
+ nullable(): NullableType<this>;
42
+ nullish(): OptionalType<NullableType<this>>;
43
+ default(value: this['encodeZodType']['_zod']['input']): DefaultType<this>;
44
+ title(title: string): this;
45
+ description(description: string): this;
46
+ examples(...examples: this['encodeZodType']['_zod']['input'][]): this;
47
+ meta(newMetadata: TypeMetadata): this;
48
+ encode(data: this['encodeZodType']['_zod']['input'], context?: core.ParseContext<core.$ZodIssue>): this['encodeZodType']['_zod']['output'];
49
+ decode(data: this['decodeZodType']['_zod']['input'], context?: core.ParseContext<core.$ZodIssue>): this['decodeZodType']['_zod']['output'];
50
+ }
51
+ export declare class OptionalType<Type extends BaseTypeAny = BaseTypeAny> extends BaseType<ZodMiniOptional<Type['encodeZodType']>, ZodMiniOptional<Type['decodeZodType']>, {
52
+ inner: Type;
53
+ }> {
54
+ static factory<T extends BaseTypeAny>(type: T): OptionalType<T>;
55
+ }
56
+ export declare class NullableType<Type extends BaseTypeAny<any> = BaseTypeAny<any>> extends BaseType<ZodMiniNullable<Type['encodeZodType']>, ZodMiniNullable<Type['decodeZodType']>, {
57
+ inner: Type;
58
+ }> {
59
+ static factory<T extends BaseTypeAny<any>>(type: T): NullableType<T>;
60
+ }
61
+ export declare class DefaultType<Type extends BaseTypeAny = BaseTypeAny> extends BaseType<ZodMiniDefault<Type['encodeZodType']>, ZodMiniDefault<Type['decodeZodType']>, {
62
+ inner: Type;
63
+ }> {
64
+ static factory<T extends BaseTypeAny<any>>(type: T, defaultValue: any): DefaultType<T>;
65
+ }
@@ -79,3 +79,4 @@ export class DefaultType extends BaseType {
79
79
  });
80
80
  }
81
81
  }
82
+ //# sourceMappingURL=base.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base.js","sourceRoot":"","sources":["../../src/types/base.ts"],"names":[],"mappings":"AAkBA,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AAkDvE,MAAM,CAAC,MAAM,aAAa,GAAG,QAAQ,EAAgB,CAAA;AAErD,MAAM,CAAC,MAAM,gBAAgB,GAAG,IAAI,CAAC,SAAS,CAAA;AAG9C,MAAM,OAAgB,QAAQ;IAOnB,aAAa,CAAe;IAC5B,aAAa,CAAe;IAC5B,gBAAgB,CAAmB;IACnC,gBAAgB,CAAmB;IACnC,KAAK,CAAO;IACZ,MAAM,CAAY;IAE3B,YAAY,EACV,aAAa,EACb,aAAa,GAAG,aAAyC,EACzD,KAAK,GAAG,EAAW,EACnB,MAAM,GAAG,EAAyB,GAMnC;QACC,IAAI,CAAC,aAAa,GAAG,aAAa,CAAA;QAClC,IAAI,CAAC,aAAa,GAAG,aAAa,CAAA;QAElC,IAAI,CAAC,KAAK,GAAG,KAAK,CAAA;QAClB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,MAAM,CAAC,CAAA;IACrD,CAAC;IAED,QAAQ;QACN,OAAO,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC,CAAA;IACnC,CAAC;IAED,QAAQ;QACN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<boolean>> {
4
+ static factory(): BooleanType;
5
+ }
6
+ export declare const boolean: typeof BooleanType.factory;
@@ -6,3 +6,4 @@ export class BooleanType extends BaseType {
6
6
  }
7
7
  }
8
8
  export const boolean = BooleanType.factory;
9
+ //# sourceMappingURL=boolean.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"boolean.js","sourceRoot":"","sources":["../../src/types/boolean.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,UAAU,CAAA;AAEhD,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAA;AAEpC,MAAM,OAAO,WAAY,SAAQ,QAAiC;IAChE,MAAM,CAAC,OAAO;QACZ,OAAO,IAAI,WAAW,CAAC,EAAE,aAAa,EAAE,UAAU,EAAE,EAAE,CAAC,CAAA;IACzD,CAAC;CACF;AAED,MAAM,CAAC,MAAM,OAAO,GAAG,WAAW,CAAC,OAAO,CAAA"}
@@ -0,0 +1,21 @@
1
+ import type { Async } from '@nmtjs/common';
2
+ import type { core, ZodMiniType } from 'zod/mini';
3
+ import type { SimpleZodType, ZodType } from './base.ts';
4
+ import { BaseType } from './base.ts';
5
+ export type CustomTransformFn<I, O> = (value: I) => O;
6
+ export declare abstract class TransformType<Type, EncodeType extends SimpleZodType = ZodMiniType<Type, Type>, DecodeType extends ZodType = ZodMiniType<Type, Type>> extends BaseType<ZodMiniType<EncodeType['_zod']['output'], DecodeType['_zod']['input']>, ZodMiniType<DecodeType['_zod']['output'], EncodeType['_zod']['input']>> {
7
+ }
8
+ export declare class CustomType<Type, EncodeType extends SimpleZodType = ZodMiniType<Type, Type>, DecodeType extends ZodType = ZodMiniType<Type, Type>> extends TransformType<Type, EncodeType, DecodeType> {
9
+ static factory<Type, EncodeType extends SimpleZodType = ZodMiniType<Type, Type>, DecodeType extends ZodType = ZodMiniType<Type, Type>>({ decode, encode, validation, error, type, prototype, }: {
10
+ decode: CustomTransformFn<EncodeType['_zod']['input'], DecodeType['_zod']['output']>;
11
+ encode: CustomTransformFn<DecodeType['_zod']['input'], EncodeType['_zod']['output']>;
12
+ validation?: ((value: EncodeType['_zod']['input'] | DecodeType['_zod']['output'], payload: core.$RefinementCtx<EncodeType['_zod']['output'] | DecodeType['_zod']['output']>) => Async<void>) | {
13
+ encode?: (value: EncodeType['_zod']['input'], payload: core.$RefinementCtx<EncodeType['_zod']['output']>) => Async<void>;
14
+ decode?: (value: DecodeType['_zod']['output'], payload: core.$RefinementCtx<DecodeType['_zod']['output']>) => Async<void>;
15
+ };
16
+ error?: string | core.$ZodErrorMap<core.$ZodIssueBase>;
17
+ type?: EncodeType;
18
+ prototype?: object;
19
+ }): CustomType<Type, EncodeType, DecodeType>;
20
+ }
21
+ export declare const custom: typeof CustomType.factory;
@@ -30,3 +30,4 @@ export class CustomType extends TransformType {
30
30
  }
31
31
  }
32
32
  export const custom = CustomType.factory;
33
+ //# sourceMappingURL=custom.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"custom.js","sourceRoot":"","sources":["../../src/types/custom.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,GAAG,EACH,SAAS,EACT,IAAI,EACJ,MAAM,EACN,WAAW,EACX,MAAM,IAAI,SAAS,GACpB,MAAM,UAAU,CAAA;AAGjB,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAA;AAGpC,MAAM,OAAgB,aAIpB,SAAQ,QAGT;CAAG;AAEJ,MAAM,OAAO,UAIX,SAAQ,aAA2C;IACnD,MAAM,CAAC,OAAO,CAIZ,EACA,MAAM,EACN,MAAM,EACN,UAAU,EACV,KAAK,EACL,IAAI,GAAG,GAAG,EAA2B,EACrC,SAAS,GA+BV;QACC,MAAM,WAAW,GAAG,UAAU;YAC5B,CAAC,CAAC,OAAO,UAAU,KAAK,UAAU;gBAChC,CAAC,CAAC,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE;gBAC5C,CAAC,CAAC,UAAU;YACd,CAAC,CAAC,SAAS,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4
+ export declare class DateType extends TransformType<Date, ZodMiniUnion<[iso.ZodMiniISODate, iso.ZodMiniISODateTime]>> {
5
+ static factory(): DateType;
6
+ }
7
+ export declare const date: typeof DateType.factory;
@@ -11,3 +11,4 @@ export class DateType extends TransformType {
11
11
  }
12
12
  }
13
13
  export const date = DateType.factory;
14
+ //# sourceMappingURL=date.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"date.js","sourceRoot":"","sources":["../../src/types/date.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,UAAU,CAAA;AAErC,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAEvD,MAAM,OAAO,QAAS,SAAQ,aAG7B;IACC,MAAM,CAAC,OAAO;QACZ,OAAO,UAAU,CAAC,OAAO,CAGvB;YACA,MAAM,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,IAAI,IAAI,CAAC,KAAK,CAAC;YAClC,MAAM,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,WAAW,EAAE;YACtC,IAAI,EAAE,KAAK,CAAC,CAAC,GAAG,CAAC,IAAI,EAAE,EAAE,GAAG,CAAC,QAAQ,EAAE,CAAC,CAAC;YACzC,SAAS,EAAE,QAAQ,CAAC,SAAS;SAC9B,CAAC,CAAA;IACJ,CAAC;CACF;AAED,MAAM,CAAC,MAAM,IAAI,GAAG,QAAQ,CAAC,OAAO,CAAA"}
@@ -0,0 +1,10 @@
1
+ import type { core, ZodMiniEnum } from 'zod/mini';
2
+ import { BaseType } from './base.ts';
3
+ export declare class EnumType<T extends core.util.EnumLike = core.util.EnumLike> extends BaseType<ZodMiniEnum<T>, ZodMiniEnum<T>, {
4
+ values: T;
5
+ }> {
6
+ static factory<T extends core.util.EnumLike>(values: T): EnumType<T>;
7
+ static factory<T extends string[]>(values: T): EnumType<core.util.ToEnum<T[number]>>;
8
+ }
9
+ declare const _enum: typeof EnumType.factory;
10
+ export { _enum as enum };
@@ -10,3 +10,4 @@ export class EnumType extends BaseType {
10
10
  }
11
11
  const _enum = EnumType.factory;
12
12
  export { _enum as enum };
13
+ //# sourceMappingURL=enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enum.js","sourceRoot":"","sources":["../../src/types/enum.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,IAAI,OAAO,EAAE,MAAM,UAAU,CAAA;AAE1C,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAA;AAEpC,MAAM,OAAO,QAEX,SAAQ,QAAuD;IAK/D,MAAM,CAAC,OAAO,CAA0C,MAAS;QAC/D,OAAO,IAAI,QAAQ,CAAC;YAClB,aAAa,EAAE,OAAO,CAAC,MAAa,CAAC;YACrC,KAAK,EAAE,EAAE,MAAM,EAAE;SAClB,CAAC,CAAA;IACJ,CAAC;CACF;AAED,MAAM,KAAK,GAAG,QAAQ,CAAC,OAAO,CAAA;AAE9B,OAAO,EAAE,KAAK,IAAI,IAAI,EAAE,CAAA"}
@@ -0,0 +1,9 @@
1
+ import type { ZodMiniLiteral } from 'zod/mini';
2
+ import type { PrimitiveValueType } from './base.ts';
3
+ import { BaseType } from './base.ts';
4
+ export declare class LiteralType<T extends PrimitiveValueType = PrimitiveValueType> extends BaseType<ZodMiniLiteral<T>, ZodMiniLiteral<T>, {
5
+ value: T;
6
+ }> {
7
+ static factory<T extends PrimitiveValueType>(value: T): LiteralType<T>;
8
+ }
9
+ export declare const literal: typeof LiteralType.factory;
@@ -9,3 +9,4 @@ export class LiteralType extends BaseType {
9
9
  }
10
10
  }
11
11
  export const literal = LiteralType.factory;
12
+ //# sourceMappingURL=literal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"literal.js","sourceRoot":"","sources":["../../src/types/literal.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,UAAU,CAAA;AAGhD,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAA;AAEpC,MAAM,OAAO,WAEX,SAAQ,QAA4D;IACpE,MAAM,CAAC,OAAO,CAA+B,KAAQ;QACnD,OAAO,IAAI,WAAW,CAAI;YACxB,aAAa,EAAE,UAAU,CAAC,KAAK,CAAC;YAChC,KAAK,EAAE,EAAE,KAAK,EAAE;SACjB,CAAC,CAAA;IACJ,CAAC;CACF;AAED,MAAM,CAAC,MAAM,OAAO,GAAG,WAAW,CAAC,OAAO,CAAA"}
@@ -0,0 +1,6 @@
1
+ import type { ZodMiniNever } from 'zod/mini';
2
+ import { BaseType } from './base.ts';
3
+ export declare class NeverType extends BaseType<ZodMiniNever> {
4
+ static factory(): NeverType;
5
+ }
6
+ export declare const never: typeof NeverType.factory;
@@ -6,3 +6,4 @@ export class NeverType extends BaseType {
6
6
  }
7
7
  }
8
8
  export const never = NeverType.factory;
9
+ //# sourceMappingURL=never.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"never.js","sourceRoot":"","sources":["../../src/types/never.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,IAAI,QAAQ,EAAE,MAAM,UAAU,CAAA;AAE5C,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAA;AAEpC,MAAM,OAAO,SAAU,SAAQ,QAAsB;IACnD,MAAM,CAAC,OAAO;QACZ,OAAO,IAAI,SAAS,CAAC,EAAE,aAAa,EAAE,QAAQ,EAAE,EAAE,CAAC,CAAA;IACrD,CAAC;CACF;AAED,MAAM,CAAC,MAAM,KAAK,GAAG,SAAS,CAAC,OAAO,CAAA"}
@@ -0,0 +1,7 @@
1
+ import type { ZodMiniNull } from 'zod/mini';
2
+ import { BaseType } from './base.ts';
3
+ export declare class NullType extends BaseType<ZodMiniNull> {
4
+ static factory(): NullType;
5
+ }
6
+ declare const _null: typeof NullType.factory;
7
+ export { _null as null };
@@ -7,3 +7,4 @@ export class NullType extends BaseType {
7
7
  }
8
8
  const _null = NullType.factory;
9
9
  export { _null as null };
10
+ //# sourceMappingURL=null.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"null.js","sourceRoot":"","sources":["../../src/types/null.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,IAAI,OAAO,EAAE,MAAM,UAAU,CAAA;AAE1C,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAA;AAEpC,MAAM,OAAO,QAAS,SAAQ,QAAqB;IACjD,MAAM,CAAC,OAAO;QACZ,OAAO,IAAI,QAAQ,CAAC,EAAE,aAAa,EAAE,OAAO,EAAE,EAAE,CAAC,CAAA;IACnD,CAAC;CACF;AAED,MAAM,KAAK,GAAG,QAAQ,CAAC,OAAO,CAAA;AAE9B,OAAO,EAAE,KAAK,IAAI,IAAI,EAAE,CAAA"}
@@ -0,0 +1,23 @@
1
+ import type { core, ZodMiniNumber, ZodMiniString } from 'zod/mini';
2
+ import { BaseType } from './base.ts';
3
+ import { CustomType, TransformType } from './custom.ts';
4
+ type Check = core.CheckFn<number> | core.$ZodCheck<number>;
5
+ export declare class NumberType extends BaseType<ZodMiniNumber<number>, ZodMiniNumber<number>> {
6
+ static factory(...checks: Check[]): NumberType;
7
+ positive(): NumberType;
8
+ negative(): NumberType;
9
+ lt(value: number): NumberType;
10
+ lte(value: number): NumberType;
11
+ gte(value: number): NumberType;
12
+ gt(value: number): NumberType;
13
+ }
14
+ export declare class IntegerType extends NumberType {
15
+ static factory(...checks: Check[]): NumberType;
16
+ }
17
+ export declare class BigIntType extends TransformType<bigint, ZodMiniString<string>> {
18
+ static factory(): CustomType<bigint, ZodMiniString<string>, import("zod/mini").ZodMiniType<bigint, bigint, core.$ZodTypeInternals<bigint, bigint>>>;
19
+ }
20
+ export declare const number: typeof NumberType.factory;
21
+ export declare const integer: typeof IntegerType.factory;
22
+ export declare const bigInt: typeof BigIntType.factory;
23
+ export {};
@@ -45,3 +45,4 @@ export class BigIntType extends TransformType {
45
45
  export const number = NumberType.factory;
46
46
  export const integer = IntegerType.factory;
47
47
  export const bigInt = BigIntType.factory;
48
+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,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,CAAC,CAAC,CAAA;IAC9D,CAAC;IAED,EAAE,CAAC,KAAa;QACd,OAAO,UAAU,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,EAAE,CAAC,KAAK,CAAC,CAAC,CAAA;IAC7D,CAAC;CACF;AAED,MAAM,OAAO,WAAY,SAAQ,UAAU;IACzC,MAAM,CAAC,OAAO,CAAC,GAAG,MAAe;QAC/B,OAAO,UAAU,CAAC,OAAO,CAAC,GAAG,MAAM,EAAE,GAAG,EAAE,CAAC,CAAA;IAC7C,CAAC;CACF;AAED,MAAM,OAAO,UAAW,SAAQ,aAA4C;IAC1E,MAAM,CAAC,OAAO;QACZ,OAAO,UAAU,CAAC,OAAO,CAAgC;YACvD,MAAM,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC;YAChC,MAAM,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,QAAQ,EAAE;YACnC,IAAI,EAAE,SAAS,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;YACzC,KAAK,EAAE,uBAAuB;SAC/B,CAAC,CAAA;IACJ,CAAC;CACF;AAED,MAAM,CAAC,MAAM,MAAM,GAAG,UAAU,CAAC,OAAO,CAAA;AACxC,MAAM,CAAC,MAAM,OAAO,GAAG,WAAW,CAAC,OAAO,CAAA;AAC1C,MAAM,CAAC,MAAM,MAAM,GAAG,UAAU,CAAC,OAAO,CAAA"}
@@ -0,0 +1,79 @@
1
+ import type { core, ZodMiniObject, ZodMiniRecord } from 'zod/mini';
2
+ import type { ZodPlainType } from './_utils.ts';
3
+ import type { BaseTypeAny, OptionalType } from './base.ts';
4
+ import type { LiteralType } from './literal.ts';
5
+ import type { StringType } from './string.ts';
6
+ import { BaseType } from './base.ts';
7
+ import { EnumType } from './enum.ts';
8
+ export type ObjectTypeProps = {
9
+ [k: string]: BaseTypeAny;
10
+ };
11
+ export declare class ObjectType<T extends ObjectTypeProps = {}> extends BaseType<ZodMiniObject<{
12
+ [K in keyof T]: T[K]['encodeZodType'];
13
+ }, core.$strip>, ZodMiniObject<{
14
+ [K in keyof T]: T[K]['decodeZodType'];
15
+ }, core.$strip>, {
16
+ properties: T;
17
+ }, ZodPlainType<ZodMiniObject<{
18
+ [K in keyof T]: T[K]['encodeZodType'];
19
+ }, core.$strip>>, ZodPlainType<ZodMiniObject<{
20
+ [K in keyof T]: T[K]['decodeZodType'];
21
+ }, core.$strip>>> {
22
+ static factory<T extends ObjectTypeProps = {}>(properties: T): ObjectType<T>;
23
+ }
24
+ export declare class LooseObjectType<T extends ObjectTypeProps = {}> extends BaseType<ZodMiniObject<{
25
+ [K in keyof T]: T[K]['encodeZodType'];
26
+ }, core.$loose>, ZodMiniObject<{
27
+ [K in keyof T]: T[K]['decodeZodType'];
28
+ }, core.$loose>, {
29
+ properties: T;
30
+ }, ZodPlainType<ZodMiniObject<{
31
+ [K in keyof T]: T[K]['encodeZodType'];
32
+ }, core.$loose>>, ZodPlainType<ZodMiniObject<{
33
+ [K in keyof T]: T[K]['decodeZodType'];
34
+ }, core.$loose>>> {
35
+ static factory<T extends ObjectTypeProps = {}>(properties: T): LooseObjectType<T>;
36
+ }
37
+ export type ObjectLikeType<T extends ObjectTypeProps> = ObjectType<T> | LooseObjectType<T>;
38
+ export type AnyObjectType = ObjectType<ObjectTypeProps>;
39
+ export type AnyLooseObjectType = LooseObjectType<ObjectTypeProps>;
40
+ export type AnyObjectLikeType = AnyObjectType | AnyLooseObjectType;
41
+ export declare class RecordType<K extends LiteralType<string | number> | EnumType | StringType, E extends BaseType> extends BaseType<ZodMiniRecord<K['encodeZodType'], E['encodeZodType']>, ZodMiniRecord<K['decodeZodType'], E['decodeZodType']>, {
42
+ key: K;
43
+ element: E;
44
+ }, ZodPlainType<ZodMiniRecord<K['encodeZodType'], E['encodeZodType']>>, ZodPlainType<ZodMiniRecord<K['decodeZodType'], E['decodeZodType']>>> {
45
+ static factory<K extends LiteralType<string | number> | EnumType | StringType, E extends BaseType>(key: K, element: E): RecordType<K, E>;
46
+ }
47
+ export type KeyofType<T extends AnyObjectLikeType> = EnumType<core.util.ToEnum<Extract<keyof T['props']['properties'], string>>>;
48
+ export declare function keyof<T extends AnyObjectLikeType>(type: T): KeyofType<T>;
49
+ export type PickObjectType<T extends AnyObjectLikeType, P extends {
50
+ [K in keyof T['props']['properties']]?: true;
51
+ }> = ObjectType<{
52
+ [K in keyof P]: P[K] extends true ? K extends keyof T['props']['properties'] ? T['props']['properties'][K] : never : never;
53
+ }>;
54
+ export declare function pick<T extends AnyObjectLikeType, P extends {
55
+ [K in keyof T['props']['properties']]?: true;
56
+ }>(source: T, pick: P): PickObjectType<T, P>;
57
+ export type OmitObjectType<T extends AnyObjectLikeType, P extends {
58
+ [K in keyof T['props']['properties']]?: true;
59
+ }> = ObjectType<{
60
+ [K in keyof T['props']['properties'] as K extends keyof P ? never : K]: T['props']['properties'][K];
61
+ }>;
62
+ export declare function omit<T extends AnyObjectLikeType, P extends {
63
+ [K in keyof T['props']['properties']]?: true;
64
+ }>(source: T, omit: P): OmitObjectType<T, P>;
65
+ export type ExtendObjectType<T extends AnyObjectLikeType, P extends ObjectTypeProps> = ObjectType<{
66
+ [K in keyof T['props']['properties'] | keyof P]: K extends keyof P ? P[K] : K extends keyof T['props']['properties'] ? T['props']['properties'][K] : never;
67
+ }>;
68
+ export declare function extend<T extends AnyObjectLikeType, P extends ObjectTypeProps>(object1: T, properties: P): ExtendObjectType<T, P>;
69
+ export type MergeObjectTypes<T1 extends AnyObjectLikeType, T2 extends AnyObjectLikeType> = ObjectType<{
70
+ [K in keyof T1['props']['properties'] | keyof T2['props']['properties']]: K extends keyof T2['props']['properties'] ? T2['props']['properties'][K] : K extends keyof T1['props']['properties'] ? T1['props']['properties'][K] : never;
71
+ }>;
72
+ export declare function merge<T1 extends AnyObjectLikeType, T2 extends AnyObjectLikeType>(object1: T1, object2: T2): MergeObjectTypes<T1, T2>;
73
+ export type PartialObjectType<T extends AnyObjectLikeType> = ObjectType<{
74
+ [K in keyof T['props']['properties']]: OptionalType<T['props']['properties'][K]>;
75
+ }>;
76
+ export declare function partial<T extends AnyObjectLikeType>(object: T): PartialObjectType<T>;
77
+ export declare const object: typeof ObjectType.factory;
78
+ export declare const looseObject: typeof LooseObjectType.factory;
79
+ export declare const record: typeof RecordType.factory;
@@ -74,3 +74,4 @@ export function partial(object) {
74
74
  export const object = ObjectType.factory;
75
75
  export const looseObject = LooseObjectType.factory;
76
76
  export const record = RecordType.factory;
77
+ //# sourceMappingURL=object.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"object.js","sourceRoot":"","sources":["../../src/types/object.ts"],"names":[],"mappings":"AACA,OAAO,EACL,WAAW,IAAI,cAAc,EAC7B,MAAM,IAAI,SAAS,EACnB,MAAM,IAAI,SAAS,GACpB,MAAM,UAAU,CAAA;AAMjB,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAA;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAA;AAIpC,MAAM,OAAO,UAA2C,SAAQ,QAU/D;IACC,MAAM,CAAC,OAAO,CAAiC,UAAa;QAC1D,MAAM,gBAAgB,GAAG,EAExB,CAAA;QACD,MAAM,gBAAgB,GAAG,EAExB,CAAA;QAED,KAAK,MAAM,GAAG,IAAI,UAAU,EAAE,CAAC;YAC7B,gBAAgB,CAAC,GAAG,CAAC,GAAG,UAAU,CAAC,GAAG,CAAC,CAAC,aAAa,CAAA;YACrD,gBAAgB,CAAC,GAAG,CAAC,GAAG,UAAU,CAAC,GAAG,CAAC,CAAC,aAAa,CAAA;QACvD,CAAC;QAED,OAAO,IAAI,UAAU,CAAI;YACvB,aAAa,EAAE,SAAS,CAAC,gBAAgB,CAAC;YAC1C,aAAa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AU,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC,QAAQ,EAAE,CAAA;IACpC,CAAC;IAED,OAAO,UAAU,CAAC,OAAO,CAAC,UAAU,CAAC,CAAA;AACvC,CAAC;AAED,MAAM,CAAC,MAAM,MAAM,GAAG,UAAU,CAAC,OAAO,CAAA;AACxC,MAAM,CAAC,MAAM,WAAW,GAAG,eAAe,CAAC,OAAO,CAAA;AAClD,MAAM,CAAC,MAAM,MAAM,GAAG,UAAU,CAAC,OAAO,CAAA"}
@@ -0,0 +1,22 @@
1
+ import type { core, ZodMiniString } from 'zod/mini';
2
+ import { BaseType } from './base.ts';
3
+ type Check = core.CheckFn<string> | core.$ZodCheck<string>;
4
+ export declare class StringType extends BaseType<ZodMiniString<string>, ZodMiniString<string>> {
5
+ static factory(...checks: Check[]): StringType;
6
+ max(value: number): StringType;
7
+ min(value: number): StringType;
8
+ pattern(pattern: string | RegExp): StringType;
9
+ email(options?: core.$ZodEmailParams): StringType;
10
+ url(options?: core.$ZodURLParams): StringType;
11
+ ipv4(options?: core.$ZodIPv4Params): StringType;
12
+ ipv6(options?: core.$ZodIPv6Params): StringType;
13
+ uuid(options?: core.$ZodUUIDParams): StringType;
14
+ emoji(options?: core.$ZodEmojiParams): StringType;
15
+ nanoid(options?: core.$ZodNanoIDParams): StringType;
16
+ cuid(options?: core.$ZodCUIDParams): StringType;
17
+ cuid2(options?: core.$ZodCUID2Params): StringType;
18
+ e164(options?: core.$ZodE164Params): StringType;
19
+ jwt(options?: core.$ZodJWTParams): StringType;
20
+ }
21
+ export declare const string: typeof StringType.factory;
22
+ export {};
@@ -51,3 +51,4 @@ export class StringType extends BaseType {
51
51
  }
52
52
  }
53
53
  export const string = StringType.factory;
54
+ //# sourceMappingURL=string.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"string.js","sourceRoot":"","sources":["../../src/types/string.ts"],"names":[],"mappings":"AACA,OAAO,EACL,IAAI,EACJ,KAAK,EACL,IAAI,EACJ,KAAK,EACL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CAAC,CAAC,CAAA;IACjE,CAAC;IAED,GAAG,CAAC,OAA4B;QAC9B,OAAO,UAAU,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC,CAAA;IAChE,CAAC;CACF;AAED,MAAM,CAAC,MAAM,MAAM,GAAG,UAAU,CAAC,OAAO,CAAA"}
@@ -0,0 +1,26 @@
1
+ import type { Temporal } from 'temporal-spec';
2
+ import type { ZodMiniString } from 'zod/mini';
3
+ import { TransformType } from './custom.ts';
4
+ type EncodeType = ZodMiniString<string>;
5
+ export declare class PlainDateType extends TransformType<Temporal.PlainDate, EncodeType> {
6
+ static factory(implementation: typeof Temporal): PlainDateType;
7
+ }
8
+ export declare class PlainDateTimeType extends TransformType<Temporal.PlainDateTime, EncodeType> {
9
+ static factory(implementation: typeof Temporal): PlainDateTimeType;
10
+ }
11
+ export declare class ZonedDateTimeType extends TransformType<Temporal.ZonedDateTime, EncodeType> {
12
+ static factory(implementation: typeof Temporal): ZonedDateTimeType;
13
+ }
14
+ export declare class PlainTimeType extends TransformType<Temporal.PlainTime, EncodeType> {
15
+ static factory(implementation: typeof Temporal): PlainTimeType;
16
+ }
17
+ export declare class DurationType extends TransformType<Temporal.Duration, EncodeType> {
18
+ static factory(implementation: typeof Temporal): DurationType;
19
+ }
20
+ export declare class PlainYearMonthType extends TransformType<Temporal.PlainYearMonth, EncodeType> {
21
+ static factory(implementation: typeof Temporal): PlainYearMonthType;
22
+ }
23
+ export declare class PlainMonthDayType extends TransformType<Temporal.PlainMonthDay, EncodeType> {
24
+ static factory(implementation: typeof Temporal): PlainMonthDayType;
25
+ }
26
+ export {};
@@ -91,3 +91,4 @@ export class PlainMonthDayType extends TransformType {
91
91
  });
92
92
  }
93
93
  }
94
+ //# sourceMappingURL=temporal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"temporal.js","sourceRoot":"","sources":["../../src/types/temporal.ts"],"names":[],"mappings":"A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A;QACzE,OAAO,UAAU,CAAC,OAAO,CAAgC;YACvD,MAAM,EAAE,WAAW,CAAC,MAAM;YAC1B,MAAM,EAAE,WAAW,CAAC,MAAM;YAC1B,IAAI,EAAE,GAAG,CAAC,QAAQ,EAAE;YACpB,KAAK,EAAE,yBAAyB;SACjC,CAAC,CAAA;IACJ,CAAC;CACF;AAED,MAAM,OAAO,kBAAmB,SAAQ,aAGvC;IACC,MAAM,CAAC,OAAO,CAAC,cAA+B;QAC5C,MAAM,WAAW,GAAG,yBAAyB,CAC3C,cAAc,EACd,gBAAgB,CACjB,CAAA;QACD,OAAO,UAAU,CAAC,OAAO,CAAsC;YAC7D,MAAM,EAAE,WAAW,CAAC,MAAM;YAC1B,MAAM,EAAE,WAAW,CAAC,MAAM;YAC1B,IAAI,EAAE,MAAM,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC;YAC5C,KAAK,EAAE,2BAA2B;SACnC,CAAC,CAAA;IACJ,CAAC;CACF;AAED,MAAM,OAAO,iBAAkB,SAAQ,aAGtC;IACC,MAAM,CAAC,OAAO,CAAC,cAA+B;QAC5C,MAAM,WAAW,GAAG,yBAAyB,CAC3C,cAAc,EACd,eAAe,CAChB,CAAA;QACD,OAAO,UAAU,CAAC,OAAO,CAAqC;YAC5D,MAAM,EAAE,WAAW,CAAC,MAAM;YAC1B,MAAM,EAAE,WAAW,CAAC,MAAM;YAC1B,IAAI,EAAE,MAAM,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC;YAC5C,KAAK,EAAE,0BAA0B;SAClC,CAAC,CAAA;IACJ,CAAC;CACF"}
@@ -0,0 +1,14 @@
1
+ import type { ArrayMap } from '@nmtjs/common';
2
+ import type { ZodMiniTuple } from 'zod/mini';
3
+ import type { ZodPlainType } from './_utils.ts';
4
+ import { BaseType } from './base.ts';
5
+ export declare class TupleType<T extends readonly [BaseType, ...BaseType[]] = readonly [
6
+ BaseType,
7
+ ...BaseType[]
8
+ ], R extends BaseType | null = BaseType | null> extends BaseType<R extends BaseType ? ZodMiniTuple<ArrayMap<T, 'encodeZodType'>, R['encodeZodType']> : ZodMiniTuple<ArrayMap<T, 'encodeZodType'>, null>, R extends BaseType ? ZodMiniTuple<ArrayMap<T, 'decodeZodType'>, R['decodeZodType']> : ZodMiniTuple<ArrayMap<T, 'decodeZodType'>, null>, {
9
+ elements: T;
10
+ rest?: R;
11
+ }, R extends BaseType ? ZodPlainType<ZodMiniTuple<ArrayMap<T, 'encodeZodType'>, R['encodeZodType']>> : ZodPlainType<ZodMiniTuple<ArrayMap<T, 'encodeZodType'>, null>>, R extends BaseType ? ZodPlainType<ZodMiniTuple<ArrayMap<T, 'decodeZodType'>, R['decodeZodType']>> : ZodPlainType<ZodMiniTuple<ArrayMap<T, 'decodeZodType'>, null>>> {
12
+ static factory<T extends readonly [BaseType, ...BaseType[]], R extends BaseType | null = null>(elements: T, rest?: R): TupleType<T, R>;
13
+ }
14
+ export declare const tuple: typeof TupleType.factory;
@@ -14,3 +14,4 @@ export class TupleType extends BaseType {
14
14
  }
15
15
  }
16
16
  export const tuple = TupleType.factory;
17
+ //# sourceMappingURL=tuple.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tuple.js","sourceRoot":"","sources":["../../src/types/tuple.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,IAAI,QAAQ,EAAE,MAAM,UAAU,CAAA;AAG5C,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAA;AAEpC,MAAM,OAAO,SAMX,SAAQ,QAkBT;IACC,MAAM,CAAC,OAAO,CAGZ,QAAW,EAAE,OAAU,IAAS;QAChC,MAAM,MAAM,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,aAAa,CAAC,CAAA;QACrD,MAAM,MAAM,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,aAAa,CAAC,CAAA;QACrD,OAAO,IAAI,SAAS,CAAO;YACzB,mBAAmB;YACnB,aAAa,EAAE,QAAQ,CAAC,MAAM,EAAE,IAAI,EAAE,aAAa,CAAC;YACpD,mBAAmB;YACnB,aAAa,EAAE,QAAQ,CAAC,MAAM,EAAE,IAAI,EAAE,aAAa,CAAC;YACpD,KAAK,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;SAC1B,CAAC,CAAA;IACJ,CAAC;CACF;AAED,MAAM,CAAC,MAAM,KAAK,GAAG,SAAS,CAAC,OAAO,CAAA"}
@@ -0,0 +1,42 @@
1
+ import type { ArrayMap } from '@nmtjs/common';
2
+ import type { ZodMiniDiscriminatedUnion, ZodMiniIntersection, ZodMiniUnion } from 'zod/mini';
3
+ import type { ZodPlainType } from './_utils.ts';
4
+ import type { BaseTypeAny } from './base.ts';
5
+ import type { LiteralType } from './literal.ts';
6
+ import type { ObjectType, ObjectTypeProps } from './object.ts';
7
+ import { BaseType } from './base.ts';
8
+ export declare class UnionType<T extends readonly [BaseType, ...BaseType[]] = readonly [
9
+ BaseType,
10
+ ...BaseType[]
11
+ ]> extends BaseType<ZodMiniUnion<ArrayMap<T, 'encodeZodType'>>, ZodMiniUnion<ArrayMap<T, 'decodeZodType'>>, {
12
+ options: T;
13
+ }, ZodPlainType<ZodMiniUnion<ArrayMap<T, 'encodeZodType'>>>, ZodPlainType<ZodMiniUnion<ArrayMap<T, 'decodeZodType'>>>> {
14
+ static factory<T extends readonly [BaseType, ...BaseType[]] = readonly [
15
+ BaseType,
16
+ ...BaseType[]
17
+ ]>(...options: T): UnionType<T>;
18
+ }
19
+ export declare class IntersactionType<T extends readonly [BaseType, BaseType] = readonly [BaseType, BaseType]> extends BaseType<ZodMiniIntersection<T[0]['encodeZodType'], T[1]['encodeZodType']>, ZodMiniIntersection<T[0]['decodeZodType'], T[1]['decodeZodType']>, {
20
+ options: T;
21
+ }> {
22
+ static factory<T extends readonly [BaseType, BaseType] = readonly [BaseType, BaseType]>(...options: T): IntersactionType<T>;
23
+ }
24
+ export type DiscriminatedUnionProperties<K extends string = string> = {
25
+ [OK in K]: LiteralType<string>;
26
+ } & {
27
+ [OK in string]: any;
28
+ };
29
+ export type DiscriminatedUnionOptionType<K extends string> = ObjectType<ObjectTypeProps & {
30
+ [_ in K]: BaseTypeAny;
31
+ }>;
32
+ export declare class DiscriminatedUnionType<K extends string = string, T extends readonly DiscriminatedUnionOptionType<K>[] = DiscriminatedUnionOptionType<K>[]> extends BaseType<ZodMiniDiscriminatedUnion<ArrayMap<T, 'encodeZodType'>>, ZodMiniDiscriminatedUnion<ArrayMap<T, 'decodeZodType'>>, {
33
+ key: K;
34
+ options: T;
35
+ }, ZodPlainType<ZodMiniDiscriminatedUnion<ArrayMap<T, 'encodeZodType'>>>, ZodPlainType<ZodMiniDiscriminatedUnion<ArrayMap<T, 'decodeZodType'>>>> {
36
+ static factory<K extends string = string, T extends readonly DiscriminatedUnionOptionType<K>[] = DiscriminatedUnionOptionType<K>[]>(key: K, ...options: T): DiscriminatedUnionType<K, T>;
37
+ }
38
+ export declare const union: typeof UnionType.factory;
39
+ export declare const or: typeof UnionType.factory;
40
+ export declare const intersection: typeof IntersactionType.factory;
41
+ export declare const and: typeof IntersactionType.factory;
42
+ export declare const discriminatedUnion: typeof DiscriminatedUnionType.factory;
@@ -39,3 +39,4 @@ export const or = UnionType.factory;
39
39
  export const intersection = IntersactionType.factory;
40
40
  export const and = IntersactionType.factory;
41
41
  export const discriminatedUnion = DiscriminatedUnionType.factory;
42
+ //# sourceMappingURL=union.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"union.js","sourceRoot":"","sources":["../../src/types/union.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,kBAAkB,IAAI,qBAAqB,EAC3C,YAAY,IAAI,eAAe,EAC/B,KAAK,IAAI,QAAQ,GAClB,MAAM,UAAU,CAAA;AAMjB,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAA;AAEpC,MAAM,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nB,aAAa,EAAE,qBAAqB,CAAC,GAAG,EAAE,MAAM,CAAC;YACjD,mBAAmB;YACnB,aAAa,EAAE,qBAAqB,CAAC,GAAG,EAAE,MAAM,CAAC;YACjD,KAAK,EAAE,EAAE,GAAG,EAAE,OAAO,EAAE;SACxB,CAAC,CAAA;IACJ,CAAC;CACF;AAED,MAAM,CAAC,MAAM,KAAK,GAAG,SAAS,CAAC,OAAO,CAAA;AACtC,MAAM,CAAC,MAAM,EAAE,GAAG,SAAS,CAAC,OAAO,CAAA;AACnC,MAAM,CAAC,MAAM,YAAY,GAAG,gBAAgB,CAAC,OAAO,CAAA;AACpD,MAAM,CAAC,MAAM,GAAG,GAAG,gBAAgB,CAAC,OAAO,CAAA;AAC3C,MAAM,CAAC,MAAM,kBAAkB,GAAG,sBAAsB,CAAC,OAAO,CAAA"}
package/package.json CHANGED
@@ -18,22 +18,22 @@
18
18
  "peerDependencies": {
19
19
  "temporal-polyfill": "^0.3.0",
20
20
  "zod": "^4.1.0",
21
- "@nmtjs/common": "0.15.0-beta.2"
21
+ "@nmtjs/common": "0.15.0-beta.3"
22
22
  },
23
23
  "devDependencies": {
24
24
  "temporal-polyfill": "^0.3.0",
25
25
  "zod": "^4.1.0",
26
- "@nmtjs/common": "0.15.0-beta.2"
26
+ "@nmtjs/common": "0.15.0-beta.3"
27
27
  },
28
28
  "peerDependenciesMeta": {
29
29
  "temporal-polyfill": {
30
30
  "optional": true
31
31
  }
32
32
  },
33
- "version": "0.15.0-beta.2",
33
+ "version": "0.15.0-beta.3",
34
34
  "scripts": {
35
35
  "clean-build": "rm -rf ./dist",
36
- "build": "tsc",
36
+ "build": "tsc --declaration --sourcemap",
37
37
  "dev": "tsc --watch",
38
38
  "type-check": "tsc --noEmit"
39
39
  }