@nmtjs/type 0.15.0-beta.49 → 0.15.0-beta.50

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.
@@ -14,6 +14,7 @@ export * from './object.ts';
14
14
  export * from './string.ts';
15
15
  export * from './tuple.ts';
16
16
  export * from './union.ts';
17
+ export * from './unknown.ts';
17
18
  export declare namespace infer {
18
19
  namespace decode {
19
20
  type input<T extends BaseTypeAny> = T['decodeZodType']['_zod']['input'];
@@ -13,4 +13,5 @@ export * from './object.js';
13
13
  export * from './string.js';
14
14
  export * from './tuple.js';
15
15
  export * from './union.js';
16
+ export * from './unknown.js';
16
17
  //# sourceMappingURL=_type.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"_type.js","sourceRoot":"","sources":["../../src/types/_type.ts"],"names":[],"mappings":"AAEA,cAAc,UAAU,CAAA;AACxB,cAAc,YAAY,CAAA;AAC1B,OAAO,EACL,QAAQ,EAER,WAAW,EACX,gBAAgB,EAChB,YAAY,EACZ,YAAY,GACb,MAAM,WAAW,CAAA;AAClB,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"}
1
+ {"version":3,"file":"_type.js","sourceRoot":"","sources":["../../src/types/_type.ts"],"names":[],"mappings":"AAEA,cAAc,UAAU,CAAA;AACxB,cAAc,YAAY,CAAA;AAC1B,OAAO,EACL,QAAQ,EAER,WAAW,EACX,gBAAgB,EAChB,YAAY,EACZ,YAAY,GACb,MAAM,WAAW,CAAA;AAClB,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;AAC1B,cAAc,cAAc,CAAA"}
@@ -0,0 +1,6 @@
1
+ import type { ZodMiniUnknown } from 'zod/mini';
2
+ import { BaseType } from './base.ts';
3
+ export declare class UnknownType extends BaseType<ZodMiniUnknown> {
4
+ static factory(): UnknownType;
5
+ }
6
+ export declare const unknown: typeof UnknownType.factory;
@@ -0,0 +1,9 @@
1
+ import { unknown as zodUnknown } from 'zod/mini';
2
+ import { BaseType } from './base.js';
3
+ export class UnknownType extends BaseType {
4
+ static factory() {
5
+ return new UnknownType({ encodeZodType: zodUnknown() });
6
+ }
7
+ }
8
+ export const unknown = UnknownType.factory;
9
+ //# sourceMappingURL=unknown.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unknown.js","sourceRoot":"","sources":["../../src/types/unknown.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,QAAwB;IACvD,MAAM,CAAC,OAAO,GAAG;QACf,OAAO,IAAI,WAAW,CAAC,EAAE,aAAa,EAAE,UAAU,EAAE,EAAE,CAAC,CAAA;IAAA,CACxD;CACF;AAED,MAAM,CAAC,MAAM,OAAO,GAAG,WAAW,CAAC,OAAO,CAAA"}
package/package.json CHANGED
@@ -37,19 +37,19 @@
37
37
  "peerDependencies": {
38
38
  "temporal-polyfill": "^0.3.0",
39
39
  "zod": "^4.3.5",
40
- "@nmtjs/common": "0.15.0-beta.49"
40
+ "@nmtjs/common": "0.15.0-beta.50"
41
41
  },
42
42
  "devDependencies": {
43
43
  "temporal-polyfill": "^0.3.0",
44
44
  "zod": "^4.3.5",
45
- "@nmtjs/common": "0.15.0-beta.49"
45
+ "@nmtjs/common": "0.15.0-beta.50"
46
46
  },
47
47
  "peerDependenciesMeta": {
48
48
  "temporal-polyfill": {
49
49
  "optional": true
50
50
  }
51
51
  },
52
- "version": "0.15.0-beta.49",
52
+ "version": "0.15.0-beta.50",
53
53
  "scripts": {
54
54
  "clean-build": "rm -rf ./dist"
55
55
  }
@@ -22,6 +22,7 @@ export * from './object.ts'
22
22
  export * from './string.ts'
23
23
  export * from './tuple.ts'
24
24
  export * from './union.ts'
25
+ export * from './unknown.ts'
25
26
 
26
27
  export namespace infer {
27
28
  export namespace decode {
@@ -0,0 +1,12 @@
1
+ import type { ZodMiniUnknown } from 'zod/mini'
2
+ import { unknown as zodUnknown } from 'zod/mini'
3
+
4
+ import { BaseType } from './base.ts'
5
+
6
+ export class UnknownType extends BaseType<ZodMiniUnknown> {
7
+ static factory() {
8
+ return new UnknownType({ encodeZodType: zodUnknown() })
9
+ }
10
+ }
11
+
12
+ export const unknown = UnknownType.factory