@jakubmazanec/zod-utils 2.0.3-unstable.ec40525 → 2.0.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.
@@ -16,11 +16,11 @@ export declare const packageJsonSchema: z.ZodObject<{
16
16
  email: z.ZodOptional<z.ZodString>;
17
17
  url: z.ZodOptional<z.ZodString>;
18
18
  }, "strict", z.ZodTypeAny, {
19
- email?: string | undefined;
20
19
  url?: string | undefined;
21
- }, {
22
20
  email?: string | undefined;
21
+ }, {
23
22
  url?: string | undefined;
23
+ email?: string | undefined;
24
24
  }>, z.ZodString]>>;
25
25
  license: z.ZodOptional<z.ZodString>;
26
26
  author: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
@@ -29,12 +29,12 @@ export declare const packageJsonSchema: z.ZodObject<{
29
29
  url: z.ZodOptional<z.ZodString>;
30
30
  }, "strict", z.ZodTypeAny, {
31
31
  name: string;
32
- email?: string | undefined;
33
32
  url?: string | undefined;
33
+ email?: string | undefined;
34
34
  }, {
35
35
  name: string;
36
- email?: string | undefined;
37
36
  url?: string | undefined;
37
+ email?: string | undefined;
38
38
  }>, z.ZodString]>>;
39
39
  contributors: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
40
40
  name: z.ZodString;
@@ -42,12 +42,12 @@ export declare const packageJsonSchema: z.ZodObject<{
42
42
  url: z.ZodOptional<z.ZodString>;
43
43
  }, "strict", z.ZodTypeAny, {
44
44
  name: string;
45
- email?: string | undefined;
46
45
  url?: string | undefined;
46
+ email?: string | undefined;
47
47
  }, {
48
48
  name: string;
49
- email?: string | undefined;
50
49
  url?: string | undefined;
50
+ email?: string | undefined;
51
51
  }>, z.ZodString]>, "many">>;
52
52
  maintainers: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
53
53
  name: z.ZodString;
@@ -55,12 +55,12 @@ export declare const packageJsonSchema: z.ZodObject<{
55
55
  url: z.ZodOptional<z.ZodString>;
56
56
  }, "strict", z.ZodTypeAny, {
57
57
  name: string;
58
- email?: string | undefined;
59
58
  url?: string | undefined;
59
+ email?: string | undefined;
60
60
  }, {
61
61
  name: string;
62
- email?: string | undefined;
63
62
  url?: string | undefined;
63
+ email?: string | undefined;
64
64
  }>, z.ZodString]>, "many">>;
65
65
  files: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
66
66
  type: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"commonjs">, z.ZodLiteral<"module">]>>;
@@ -273,37 +273,40 @@ export declare const packageJsonSchema: z.ZodObject<{
273
273
  packageManager: z.ZodOptional<z.ZodString>;
274
274
  source: z.ZodOptional<z.ZodString>;
275
275
  }, "strip", z.ZodTypeAny, {
276
+ flat?: boolean | undefined;
277
+ type?: "commonjs" | "module" | undefined;
276
278
  name?: string | undefined;
279
+ bin?: string | Record<string, string> | undefined;
280
+ man?: string | string[] | undefined;
277
281
  version?: string | undefined;
282
+ browser?: string | Record<string, string | false> | undefined;
278
283
  description?: string | undefined;
279
284
  keywords?: string[] | undefined;
280
285
  homepage?: string | undefined;
281
286
  bugs?: string | {
282
- email?: string | undefined;
283
287
  url?: string | undefined;
288
+ email?: string | undefined;
284
289
  } | undefined;
285
290
  license?: string | undefined;
286
291
  author?: string | {
287
292
  name: string;
288
- email?: string | undefined;
289
293
  url?: string | undefined;
294
+ email?: string | undefined;
290
295
  } | undefined;
291
296
  contributors?: (string | {
292
297
  name: string;
293
- email?: string | undefined;
294
298
  url?: string | undefined;
299
+ email?: string | undefined;
295
300
  })[] | undefined;
296
301
  maintainers?: (string | {
297
302
  name: string;
298
- email?: string | undefined;
299
303
  url?: string | undefined;
304
+ email?: string | undefined;
300
305
  })[] | undefined;
301
306
  files?: string[] | undefined;
302
- type?: "commonjs" | "module" | undefined;
307
+ module?: string | undefined;
303
308
  main?: string | undefined;
304
309
  exports?: PackageJsonExports | undefined;
305
- bin?: string | Record<string, string> | undefined;
306
- man?: string | string[] | undefined;
307
310
  directories?: {
308
311
  bin?: string | undefined;
309
312
  doc?: string | undefined;
@@ -365,9 +368,7 @@ export declare const packageJsonSchema: z.ZodObject<{
365
368
  url: string;
366
369
  type?: string | undefined;
367
370
  })[] | undefined;
368
- module?: string | undefined;
369
371
  esnext?: string | Record<string, string> | undefined;
370
- browser?: string | Record<string, string | false> | undefined;
371
372
  sideEffects?: boolean | string[] | undefined;
372
373
  engines?: ({
373
374
  node?: string | undefined;
@@ -386,44 +387,46 @@ export declare const packageJsonSchema: z.ZodObject<{
386
387
  packages?: string[] | undefined;
387
388
  nohoist?: string[] | undefined;
388
389
  } | undefined;
389
- flat?: boolean | undefined;
390
390
  resolutions?: Record<string, string> | undefined;
391
391
  types?: string | undefined;
392
392
  typings?: string | undefined;
393
393
  packageManager?: string | undefined;
394
394
  source?: string | undefined;
395
395
  }, {
396
+ flat?: boolean | undefined;
397
+ type?: "commonjs" | "module" | undefined;
396
398
  name?: string | undefined;
399
+ bin?: string | Record<string, string> | undefined;
400
+ man?: string | string[] | undefined;
397
401
  version?: string | undefined;
402
+ browser?: string | Record<string, string | false> | undefined;
398
403
  description?: string | undefined;
399
404
  keywords?: string[] | undefined;
400
405
  homepage?: string | undefined;
401
406
  bugs?: string | {
402
- email?: string | undefined;
403
407
  url?: string | undefined;
408
+ email?: string | undefined;
404
409
  } | undefined;
405
410
  license?: string | undefined;
406
411
  author?: string | {
407
412
  name: string;
408
- email?: string | undefined;
409
413
  url?: string | undefined;
414
+ email?: string | undefined;
410
415
  } | undefined;
411
416
  contributors?: (string | {
412
417
  name: string;
413
- email?: string | undefined;
414
418
  url?: string | undefined;
419
+ email?: string | undefined;
415
420
  })[] | undefined;
416
421
  maintainers?: (string | {
417
422
  name: string;
418
- email?: string | undefined;
419
423
  url?: string | undefined;
424
+ email?: string | undefined;
420
425
  })[] | undefined;
421
426
  files?: string[] | undefined;
422
- type?: "commonjs" | "module" | undefined;
427
+ module?: string | undefined;
423
428
  main?: string | undefined;
424
429
  exports?: PackageJsonExports | undefined;
425
- bin?: string | Record<string, string> | undefined;
426
- man?: string | string[] | undefined;
427
430
  directories?: {
428
431
  bin?: string | undefined;
429
432
  doc?: string | undefined;
@@ -485,9 +488,7 @@ export declare const packageJsonSchema: z.ZodObject<{
485
488
  url: string;
486
489
  type?: string | undefined;
487
490
  })[] | undefined;
488
- module?: string | undefined;
489
491
  esnext?: string | Record<string, string> | undefined;
490
- browser?: string | Record<string, string | false> | undefined;
491
492
  sideEffects?: boolean | string[] | undefined;
492
493
  engines?: ({
493
494
  node?: string | undefined;
@@ -506,7 +507,6 @@ export declare const packageJsonSchema: z.ZodObject<{
506
507
  packages?: string[] | undefined;
507
508
  nohoist?: string[] | undefined;
508
509
  } | undefined;
509
- flat?: boolean | undefined;
510
510
  resolutions?: Record<string, string> | undefined;
511
511
  types?: string | undefined;
512
512
  typings?: string | undefined;
@@ -112,6 +112,10 @@ export declare const tsconfigJsonSchema: z.ZodObject<{
112
112
  watchDirectory: z.ZodOptional<z.ZodEnum<["useFsEvents", "fixedPollingInterval", "dynamicPriorityPolling", "fixedChunkSizePolling"]>>;
113
113
  watchFile: z.ZodOptional<z.ZodEnum<["fixedPollingInterval", "priorityPollingInterval", "dynamicPriorityPolling", "useFsEvents", "useFsEventsOnParentDirectory", "fixedChunkSizePolling"]>>;
114
114
  }, "strict", z.ZodTypeAny, {
115
+ strict?: boolean | undefined;
116
+ lib?: ("esnext" | "ES6" | "ES2015" | "ES2020" | "ESNext" | "es6" | "es2015" | "es2020" | "ES5" | "ES2016" | "ES2017" | "ES2018" | "ES2019" | "ES2021" | "es5" | "es2016" | "es2017" | "es2018" | "es2019" | "es2021" | "ES7" | "ES2015.Collection" | "ES2015.Core" | "ES2015.Generator" | "ES2015.Iterable" | "ES2015.Promise" | "ES2015.Proxy" | "ES2015.Reflect" | "ES2015.Symbol.WellKnown" | "ES2015.Symbol" | "ES2016.Array.Include" | "ES2017.Intl" | "ES2017.Object" | "ES2017.SharedMemory" | "ES2017.String" | "ES2017.TypedArrays" | "ES2018.AsyncGenerator" | "ES2018.AsyncIterable" | "ES2018.Intl" | "ES2018.Promise" | "ES2018.Regexp" | "ES2019.Array" | "ES2019.Object" | "ES2019.String" | "ES2019.Symbol" | "ES2020.BigInt" | "ES2020.Promise" | "ES2020.String" | "ES2020.Symbol.WellKnown" | "ES2020.SharedMemory" | "ES2020.Intl" | "ES2021.Promise" | "ES2021.String" | "ES2021.WeakRef" | "ESNext.Array" | "ESNext.AsyncIterable" | "ESNext.BigInt" | "ESNext.Intl" | "ESNext.Promise" | "ESNext.String" | "ESNext.Symbol" | "ESNext.WeakRef" | "DOM" | "DOM.Iterable" | "ScriptHost" | "WebWorker" | "WebWorker.ImportScripts" | "WebWorker.Iterable" | "es7" | "es2015.collection" | "es2015.core" | "es2015.generator" | "es2015.iterable" | "es2015.promise" | "es2015.proxy" | "es2015.reflect" | "es2015.symbol.wellknown" | "es2015.symbol" | "es2016.array.include" | "es2017.intl" | "es2017.object" | "es2017.sharedmemory" | "es2017.string" | "es2017.typedarrays" | "es2018.asyncgenerator" | "es2018.asynciterable" | "es2018.intl" | "es2018.promise" | "es2018.regexp" | "es2019.array" | "es2019.object" | "es2019.string" | "es2019.symbol" | "es2020.bigint" | "es2020.promise" | "es2020.string" | "es2020.symbol.wellknown" | "es2020.sharedmemory" | "es2020.intl" | "es2021.promise" | "es2021.string" | "es2021.weakref" | "esnext.array" | "esnext.asynciterable" | "esnext.bigint" | "esnext.intl" | "esnext.promise" | "esnext.string" | "esnext.symbol" | "esnext.weakref" | "dom" | "dom.iterable" | "scripthost" | "webworker" | "webworker.importscripts" | "webworker.iterable")[] | undefined;
117
+ module?: "commonjs" | "esnext" | "CommonJS" | "AMD" | "System" | "UMD" | "ES6" | "ES2015" | "ES2020" | "ESNext" | "None" | "amd" | "system" | "umd" | "es6" | "es2015" | "es2020" | "none" | undefined;
118
+ types?: string[] | undefined;
115
119
  allowJs?: boolean | undefined;
116
120
  allowSyntheticDefaultImports?: boolean | undefined;
117
121
  allowUmdGlobalAccess?: boolean | undefined;
@@ -144,7 +148,7 @@ export declare const tsconfigJsonSchema: z.ZodObject<{
144
148
  forceConsistentCasingInFileNames?: boolean | undefined;
145
149
  generateCpuProfile?: string | undefined;
146
150
  importHelpers?: boolean | undefined;
147
- importsNotUsedAsValues?: "error" | "preserve" | "remove" | undefined;
151
+ importsNotUsedAsValues?: "preserve" | "remove" | "error" | undefined;
148
152
  incremental?: boolean | undefined;
149
153
  inlineSourceMap?: boolean | undefined;
150
154
  inlineSources?: boolean | undefined;
@@ -154,13 +158,11 @@ export declare const tsconfigJsonSchema: z.ZodObject<{
154
158
  jsxFragmentFactory?: string | undefined;
155
159
  jsxImportSource?: string | undefined;
156
160
  keyofStringsOnly?: boolean | undefined;
157
- lib?: ("esnext" | "ES6" | "ES2015" | "ES2020" | "ESNext" | "es6" | "es2015" | "es2020" | "ES5" | "ES2016" | "ES2017" | "ES2018" | "ES2019" | "ES2021" | "es5" | "es2016" | "es2017" | "es2018" | "es2019" | "es2021" | "ES7" | "ES2015.Collection" | "ES2015.Core" | "ES2015.Generator" | "ES2015.Iterable" | "ES2015.Promise" | "ES2015.Proxy" | "ES2015.Reflect" | "ES2015.Symbol.WellKnown" | "ES2015.Symbol" | "ES2016.Array.Include" | "ES2017.Intl" | "ES2017.Object" | "ES2017.SharedMemory" | "ES2017.String" | "ES2017.TypedArrays" | "ES2018.AsyncGenerator" | "ES2018.AsyncIterable" | "ES2018.Intl" | "ES2018.Promise" | "ES2018.Regexp" | "ES2019.Array" | "ES2019.Object" | "ES2019.String" | "ES2019.Symbol" | "ES2020.BigInt" | "ES2020.Promise" | "ES2020.String" | "ES2020.Symbol.WellKnown" | "ES2020.SharedMemory" | "ES2020.Intl" | "ES2021.Promise" | "ES2021.String" | "ES2021.WeakRef" | "ESNext.Array" | "ESNext.AsyncIterable" | "ESNext.BigInt" | "ESNext.Intl" | "ESNext.Promise" | "ESNext.String" | "ESNext.Symbol" | "ESNext.WeakRef" | "DOM" | "DOM.Iterable" | "ScriptHost" | "WebWorker" | "WebWorker.ImportScripts" | "WebWorker.Iterable" | "es7" | "es2015.collection" | "es2015.core" | "es2015.generator" | "es2015.iterable" | "es2015.promise" | "es2015.proxy" | "es2015.reflect" | "es2015.symbol.wellknown" | "es2015.symbol" | "es2016.array.include" | "es2017.intl" | "es2017.object" | "es2017.sharedmemory" | "es2017.string" | "es2017.typedarrays" | "es2018.asyncgenerator" | "es2018.asynciterable" | "es2018.intl" | "es2018.promise" | "es2018.regexp" | "es2019.array" | "es2019.object" | "es2019.string" | "es2019.symbol" | "es2020.bigint" | "es2020.promise" | "es2020.string" | "es2020.symbol.wellknown" | "es2020.sharedmemory" | "es2020.intl" | "es2021.promise" | "es2021.string" | "es2021.weakref" | "esnext.array" | "esnext.asynciterable" | "esnext.bigint" | "esnext.intl" | "esnext.promise" | "esnext.string" | "esnext.symbol" | "esnext.weakref" | "dom" | "dom.iterable" | "scripthost" | "webworker" | "webworker.importscripts" | "webworker.iterable")[] | undefined;
158
161
  listEmittedFiles?: boolean | undefined;
159
162
  listFiles?: boolean | undefined;
160
163
  listFilesOnly?: boolean | undefined;
161
164
  mapRoot?: string | undefined;
162
165
  maxNodeModuleJsDepth?: number | undefined;
163
- module?: "commonjs" | "esnext" | "CommonJS" | "AMD" | "System" | "UMD" | "ES6" | "ES2015" | "ES2020" | "ESNext" | "None" | "amd" | "system" | "umd" | "es6" | "es2015" | "es2020" | "none" | undefined;
164
166
  moduleResolution?: "node" | "classic" | undefined;
165
167
  newLine?: "CRLF" | "LF" | "crlf" | "lf" | undefined;
166
168
  noEmit?: boolean | undefined;
@@ -199,7 +201,6 @@ export declare const tsconfigJsonSchema: z.ZodObject<{
199
201
  skipLibCheck?: boolean | undefined;
200
202
  sourceMap?: boolean | undefined;
201
203
  sourceRoot?: string | undefined;
202
- strict?: boolean | undefined;
203
204
  strictBindCallApply?: boolean | undefined;
204
205
  strictFunctionTypes?: boolean | undefined;
205
206
  strictNullChecks?: boolean | undefined;
@@ -211,13 +212,16 @@ export declare const tsconfigJsonSchema: z.ZodObject<{
211
212
  traceResolution?: boolean | undefined;
212
213
  tsBuildInfoFile?: string | undefined;
213
214
  typeRoots?: string[] | undefined;
214
- types?: string[] | undefined;
215
215
  useDefineForClassFields?: boolean | undefined;
216
216
  useUnknownInCatchVariables?: boolean | undefined;
217
217
  watch?: boolean | undefined;
218
218
  watchDirectory?: "fixedPollingInterval" | "dynamicPriorityPolling" | "useFsEvents" | "fixedChunkSizePolling" | undefined;
219
219
  watchFile?: "fixedPollingInterval" | "priorityPollingInterval" | "dynamicPriorityPolling" | "useFsEvents" | "fixedChunkSizePolling" | "useFsEventsOnParentDirectory" | undefined;
220
220
  }, {
221
+ strict?: boolean | undefined;
222
+ lib?: ("esnext" | "ES6" | "ES2015" | "ES2020" | "ESNext" | "es6" | "es2015" | "es2020" | "ES5" | "ES2016" | "ES2017" | "ES2018" | "ES2019" | "ES2021" | "es5" | "es2016" | "es2017" | "es2018" | "es2019" | "es2021" | "ES7" | "ES2015.Collection" | "ES2015.Core" | "ES2015.Generator" | "ES2015.Iterable" | "ES2015.Promise" | "ES2015.Proxy" | "ES2015.Reflect" | "ES2015.Symbol.WellKnown" | "ES2015.Symbol" | "ES2016.Array.Include" | "ES2017.Intl" | "ES2017.Object" | "ES2017.SharedMemory" | "ES2017.String" | "ES2017.TypedArrays" | "ES2018.AsyncGenerator" | "ES2018.AsyncIterable" | "ES2018.Intl" | "ES2018.Promise" | "ES2018.Regexp" | "ES2019.Array" | "ES2019.Object" | "ES2019.String" | "ES2019.Symbol" | "ES2020.BigInt" | "ES2020.Promise" | "ES2020.String" | "ES2020.Symbol.WellKnown" | "ES2020.SharedMemory" | "ES2020.Intl" | "ES2021.Promise" | "ES2021.String" | "ES2021.WeakRef" | "ESNext.Array" | "ESNext.AsyncIterable" | "ESNext.BigInt" | "ESNext.Intl" | "ESNext.Promise" | "ESNext.String" | "ESNext.Symbol" | "ESNext.WeakRef" | "DOM" | "DOM.Iterable" | "ScriptHost" | "WebWorker" | "WebWorker.ImportScripts" | "WebWorker.Iterable" | "es7" | "es2015.collection" | "es2015.core" | "es2015.generator" | "es2015.iterable" | "es2015.promise" | "es2015.proxy" | "es2015.reflect" | "es2015.symbol.wellknown" | "es2015.symbol" | "es2016.array.include" | "es2017.intl" | "es2017.object" | "es2017.sharedmemory" | "es2017.string" | "es2017.typedarrays" | "es2018.asyncgenerator" | "es2018.asynciterable" | "es2018.intl" | "es2018.promise" | "es2018.regexp" | "es2019.array" | "es2019.object" | "es2019.string" | "es2019.symbol" | "es2020.bigint" | "es2020.promise" | "es2020.string" | "es2020.symbol.wellknown" | "es2020.sharedmemory" | "es2020.intl" | "es2021.promise" | "es2021.string" | "es2021.weakref" | "esnext.array" | "esnext.asynciterable" | "esnext.bigint" | "esnext.intl" | "esnext.promise" | "esnext.string" | "esnext.symbol" | "esnext.weakref" | "dom" | "dom.iterable" | "scripthost" | "webworker" | "webworker.importscripts" | "webworker.iterable")[] | undefined;
223
+ module?: "commonjs" | "esnext" | "CommonJS" | "AMD" | "System" | "UMD" | "ES6" | "ES2015" | "ES2020" | "ESNext" | "None" | "amd" | "system" | "umd" | "es6" | "es2015" | "es2020" | "none" | undefined;
224
+ types?: string[] | undefined;
221
225
  allowJs?: boolean | undefined;
222
226
  allowSyntheticDefaultImports?: boolean | undefined;
223
227
  allowUmdGlobalAccess?: boolean | undefined;
@@ -250,7 +254,7 @@ export declare const tsconfigJsonSchema: z.ZodObject<{
250
254
  forceConsistentCasingInFileNames?: boolean | undefined;
251
255
  generateCpuProfile?: string | undefined;
252
256
  importHelpers?: boolean | undefined;
253
- importsNotUsedAsValues?: "error" | "preserve" | "remove" | undefined;
257
+ importsNotUsedAsValues?: "preserve" | "remove" | "error" | undefined;
254
258
  incremental?: boolean | undefined;
255
259
  inlineSourceMap?: boolean | undefined;
256
260
  inlineSources?: boolean | undefined;
@@ -260,13 +264,11 @@ export declare const tsconfigJsonSchema: z.ZodObject<{
260
264
  jsxFragmentFactory?: string | undefined;
261
265
  jsxImportSource?: string | undefined;
262
266
  keyofStringsOnly?: boolean | undefined;
263
- lib?: ("esnext" | "ES6" | "ES2015" | "ES2020" | "ESNext" | "es6" | "es2015" | "es2020" | "ES5" | "ES2016" | "ES2017" | "ES2018" | "ES2019" | "ES2021" | "es5" | "es2016" | "es2017" | "es2018" | "es2019" | "es2021" | "ES7" | "ES2015.Collection" | "ES2015.Core" | "ES2015.Generator" | "ES2015.Iterable" | "ES2015.Promise" | "ES2015.Proxy" | "ES2015.Reflect" | "ES2015.Symbol.WellKnown" | "ES2015.Symbol" | "ES2016.Array.Include" | "ES2017.Intl" | "ES2017.Object" | "ES2017.SharedMemory" | "ES2017.String" | "ES2017.TypedArrays" | "ES2018.AsyncGenerator" | "ES2018.AsyncIterable" | "ES2018.Intl" | "ES2018.Promise" | "ES2018.Regexp" | "ES2019.Array" | "ES2019.Object" | "ES2019.String" | "ES2019.Symbol" | "ES2020.BigInt" | "ES2020.Promise" | "ES2020.String" | "ES2020.Symbol.WellKnown" | "ES2020.SharedMemory" | "ES2020.Intl" | "ES2021.Promise" | "ES2021.String" | "ES2021.WeakRef" | "ESNext.Array" | "ESNext.AsyncIterable" | "ESNext.BigInt" | "ESNext.Intl" | "ESNext.Promise" | "ESNext.String" | "ESNext.Symbol" | "ESNext.WeakRef" | "DOM" | "DOM.Iterable" | "ScriptHost" | "WebWorker" | "WebWorker.ImportScripts" | "WebWorker.Iterable" | "es7" | "es2015.collection" | "es2015.core" | "es2015.generator" | "es2015.iterable" | "es2015.promise" | "es2015.proxy" | "es2015.reflect" | "es2015.symbol.wellknown" | "es2015.symbol" | "es2016.array.include" | "es2017.intl" | "es2017.object" | "es2017.sharedmemory" | "es2017.string" | "es2017.typedarrays" | "es2018.asyncgenerator" | "es2018.asynciterable" | "es2018.intl" | "es2018.promise" | "es2018.regexp" | "es2019.array" | "es2019.object" | "es2019.string" | "es2019.symbol" | "es2020.bigint" | "es2020.promise" | "es2020.string" | "es2020.symbol.wellknown" | "es2020.sharedmemory" | "es2020.intl" | "es2021.promise" | "es2021.string" | "es2021.weakref" | "esnext.array" | "esnext.asynciterable" | "esnext.bigint" | "esnext.intl" | "esnext.promise" | "esnext.string" | "esnext.symbol" | "esnext.weakref" | "dom" | "dom.iterable" | "scripthost" | "webworker" | "webworker.importscripts" | "webworker.iterable")[] | undefined;
264
267
  listEmittedFiles?: boolean | undefined;
265
268
  listFiles?: boolean | undefined;
266
269
  listFilesOnly?: boolean | undefined;
267
270
  mapRoot?: string | undefined;
268
271
  maxNodeModuleJsDepth?: number | undefined;
269
- module?: "commonjs" | "esnext" | "CommonJS" | "AMD" | "System" | "UMD" | "ES6" | "ES2015" | "ES2020" | "ESNext" | "None" | "amd" | "system" | "umd" | "es6" | "es2015" | "es2020" | "none" | undefined;
270
272
  moduleResolution?: "node" | "classic" | undefined;
271
273
  newLine?: "CRLF" | "LF" | "crlf" | "lf" | undefined;
272
274
  noEmit?: boolean | undefined;
@@ -305,7 +307,6 @@ export declare const tsconfigJsonSchema: z.ZodObject<{
305
307
  skipLibCheck?: boolean | undefined;
306
308
  sourceMap?: boolean | undefined;
307
309
  sourceRoot?: string | undefined;
308
- strict?: boolean | undefined;
309
310
  strictBindCallApply?: boolean | undefined;
310
311
  strictFunctionTypes?: boolean | undefined;
311
312
  strictNullChecks?: boolean | undefined;
@@ -317,7 +318,6 @@ export declare const tsconfigJsonSchema: z.ZodObject<{
317
318
  traceResolution?: boolean | undefined;
318
319
  tsBuildInfoFile?: string | undefined;
319
320
  typeRoots?: string[] | undefined;
320
- types?: string[] | undefined;
321
321
  useDefineForClassFields?: boolean | undefined;
322
322
  useUnknownInCatchVariables?: boolean | undefined;
323
323
  watch?: boolean | undefined;
@@ -358,8 +358,15 @@ export declare const tsconfigJsonSchema: z.ZodObject<{
358
358
  exclude?: string[] | undefined;
359
359
  }>>;
360
360
  }, "strict", z.ZodTypeAny, {
361
+ files?: string[] | undefined;
362
+ include?: string[] | undefined;
363
+ exclude?: string[] | undefined;
361
364
  compileOnSave?: boolean | undefined;
362
365
  compilerOptions?: {
366
+ strict?: boolean | undefined;
367
+ lib?: ("esnext" | "ES6" | "ES2015" | "ES2020" | "ESNext" | "es6" | "es2015" | "es2020" | "ES5" | "ES2016" | "ES2017" | "ES2018" | "ES2019" | "ES2021" | "es5" | "es2016" | "es2017" | "es2018" | "es2019" | "es2021" | "ES7" | "ES2015.Collection" | "ES2015.Core" | "ES2015.Generator" | "ES2015.Iterable" | "ES2015.Promise" | "ES2015.Proxy" | "ES2015.Reflect" | "ES2015.Symbol.WellKnown" | "ES2015.Symbol" | "ES2016.Array.Include" | "ES2017.Intl" | "ES2017.Object" | "ES2017.SharedMemory" | "ES2017.String" | "ES2017.TypedArrays" | "ES2018.AsyncGenerator" | "ES2018.AsyncIterable" | "ES2018.Intl" | "ES2018.Promise" | "ES2018.Regexp" | "ES2019.Array" | "ES2019.Object" | "ES2019.String" | "ES2019.Symbol" | "ES2020.BigInt" | "ES2020.Promise" | "ES2020.String" | "ES2020.Symbol.WellKnown" | "ES2020.SharedMemory" | "ES2020.Intl" | "ES2021.Promise" | "ES2021.String" | "ES2021.WeakRef" | "ESNext.Array" | "ESNext.AsyncIterable" | "ESNext.BigInt" | "ESNext.Intl" | "ESNext.Promise" | "ESNext.String" | "ESNext.Symbol" | "ESNext.WeakRef" | "DOM" | "DOM.Iterable" | "ScriptHost" | "WebWorker" | "WebWorker.ImportScripts" | "WebWorker.Iterable" | "es7" | "es2015.collection" | "es2015.core" | "es2015.generator" | "es2015.iterable" | "es2015.promise" | "es2015.proxy" | "es2015.reflect" | "es2015.symbol.wellknown" | "es2015.symbol" | "es2016.array.include" | "es2017.intl" | "es2017.object" | "es2017.sharedmemory" | "es2017.string" | "es2017.typedarrays" | "es2018.asyncgenerator" | "es2018.asynciterable" | "es2018.intl" | "es2018.promise" | "es2018.regexp" | "es2019.array" | "es2019.object" | "es2019.string" | "es2019.symbol" | "es2020.bigint" | "es2020.promise" | "es2020.string" | "es2020.symbol.wellknown" | "es2020.sharedmemory" | "es2020.intl" | "es2021.promise" | "es2021.string" | "es2021.weakref" | "esnext.array" | "esnext.asynciterable" | "esnext.bigint" | "esnext.intl" | "esnext.promise" | "esnext.string" | "esnext.symbol" | "esnext.weakref" | "dom" | "dom.iterable" | "scripthost" | "webworker" | "webworker.importscripts" | "webworker.iterable")[] | undefined;
368
+ module?: "commonjs" | "esnext" | "CommonJS" | "AMD" | "System" | "UMD" | "ES6" | "ES2015" | "ES2020" | "ESNext" | "None" | "amd" | "system" | "umd" | "es6" | "es2015" | "es2020" | "none" | undefined;
369
+ types?: string[] | undefined;
363
370
  allowJs?: boolean | undefined;
364
371
  allowSyntheticDefaultImports?: boolean | undefined;
365
372
  allowUmdGlobalAccess?: boolean | undefined;
@@ -392,7 +399,7 @@ export declare const tsconfigJsonSchema: z.ZodObject<{
392
399
  forceConsistentCasingInFileNames?: boolean | undefined;
393
400
  generateCpuProfile?: string | undefined;
394
401
  importHelpers?: boolean | undefined;
395
- importsNotUsedAsValues?: "error" | "preserve" | "remove" | undefined;
402
+ importsNotUsedAsValues?: "preserve" | "remove" | "error" | undefined;
396
403
  incremental?: boolean | undefined;
397
404
  inlineSourceMap?: boolean | undefined;
398
405
  inlineSources?: boolean | undefined;
@@ -402,13 +409,11 @@ export declare const tsconfigJsonSchema: z.ZodObject<{
402
409
  jsxFragmentFactory?: string | undefined;
403
410
  jsxImportSource?: string | undefined;
404
411
  keyofStringsOnly?: boolean | undefined;
405
- lib?: ("esnext" | "ES6" | "ES2015" | "ES2020" | "ESNext" | "es6" | "es2015" | "es2020" | "ES5" | "ES2016" | "ES2017" | "ES2018" | "ES2019" | "ES2021" | "es5" | "es2016" | "es2017" | "es2018" | "es2019" | "es2021" | "ES7" | "ES2015.Collection" | "ES2015.Core" | "ES2015.Generator" | "ES2015.Iterable" | "ES2015.Promise" | "ES2015.Proxy" | "ES2015.Reflect" | "ES2015.Symbol.WellKnown" | "ES2015.Symbol" | "ES2016.Array.Include" | "ES2017.Intl" | "ES2017.Object" | "ES2017.SharedMemory" | "ES2017.String" | "ES2017.TypedArrays" | "ES2018.AsyncGenerator" | "ES2018.AsyncIterable" | "ES2018.Intl" | "ES2018.Promise" | "ES2018.Regexp" | "ES2019.Array" | "ES2019.Object" | "ES2019.String" | "ES2019.Symbol" | "ES2020.BigInt" | "ES2020.Promise" | "ES2020.String" | "ES2020.Symbol.WellKnown" | "ES2020.SharedMemory" | "ES2020.Intl" | "ES2021.Promise" | "ES2021.String" | "ES2021.WeakRef" | "ESNext.Array" | "ESNext.AsyncIterable" | "ESNext.BigInt" | "ESNext.Intl" | "ESNext.Promise" | "ESNext.String" | "ESNext.Symbol" | "ESNext.WeakRef" | "DOM" | "DOM.Iterable" | "ScriptHost" | "WebWorker" | "WebWorker.ImportScripts" | "WebWorker.Iterable" | "es7" | "es2015.collection" | "es2015.core" | "es2015.generator" | "es2015.iterable" | "es2015.promise" | "es2015.proxy" | "es2015.reflect" | "es2015.symbol.wellknown" | "es2015.symbol" | "es2016.array.include" | "es2017.intl" | "es2017.object" | "es2017.sharedmemory" | "es2017.string" | "es2017.typedarrays" | "es2018.asyncgenerator" | "es2018.asynciterable" | "es2018.intl" | "es2018.promise" | "es2018.regexp" | "es2019.array" | "es2019.object" | "es2019.string" | "es2019.symbol" | "es2020.bigint" | "es2020.promise" | "es2020.string" | "es2020.symbol.wellknown" | "es2020.sharedmemory" | "es2020.intl" | "es2021.promise" | "es2021.string" | "es2021.weakref" | "esnext.array" | "esnext.asynciterable" | "esnext.bigint" | "esnext.intl" | "esnext.promise" | "esnext.string" | "esnext.symbol" | "esnext.weakref" | "dom" | "dom.iterable" | "scripthost" | "webworker" | "webworker.importscripts" | "webworker.iterable")[] | undefined;
406
412
  listEmittedFiles?: boolean | undefined;
407
413
  listFiles?: boolean | undefined;
408
414
  listFilesOnly?: boolean | undefined;
409
415
  mapRoot?: string | undefined;
410
416
  maxNodeModuleJsDepth?: number | undefined;
411
- module?: "commonjs" | "esnext" | "CommonJS" | "AMD" | "System" | "UMD" | "ES6" | "ES2015" | "ES2020" | "ESNext" | "None" | "amd" | "system" | "umd" | "es6" | "es2015" | "es2020" | "none" | undefined;
412
417
  moduleResolution?: "node" | "classic" | undefined;
413
418
  newLine?: "CRLF" | "LF" | "crlf" | "lf" | undefined;
414
419
  noEmit?: boolean | undefined;
@@ -447,7 +452,6 @@ export declare const tsconfigJsonSchema: z.ZodObject<{
447
452
  skipLibCheck?: boolean | undefined;
448
453
  sourceMap?: boolean | undefined;
449
454
  sourceRoot?: string | undefined;
450
- strict?: boolean | undefined;
451
455
  strictBindCallApply?: boolean | undefined;
452
456
  strictFunctionTypes?: boolean | undefined;
453
457
  strictNullChecks?: boolean | undefined;
@@ -459,17 +463,13 @@ export declare const tsconfigJsonSchema: z.ZodObject<{
459
463
  traceResolution?: boolean | undefined;
460
464
  tsBuildInfoFile?: string | undefined;
461
465
  typeRoots?: string[] | undefined;
462
- types?: string[] | undefined;
463
466
  useDefineForClassFields?: boolean | undefined;
464
467
  useUnknownInCatchVariables?: boolean | undefined;
465
468
  watch?: boolean | undefined;
466
469
  watchDirectory?: "fixedPollingInterval" | "dynamicPriorityPolling" | "useFsEvents" | "fixedChunkSizePolling" | undefined;
467
470
  watchFile?: "fixedPollingInterval" | "priorityPollingInterval" | "dynamicPriorityPolling" | "useFsEvents" | "fixedChunkSizePolling" | "useFsEventsOnParentDirectory" | undefined;
468
471
  } | undefined;
469
- exclude?: string[] | undefined;
470
472
  extends?: string | undefined;
471
- files?: string[] | undefined;
472
- include?: string[] | undefined;
473
473
  references?: {
474
474
  path: string;
475
475
  originalPath?: string | undefined;
@@ -482,8 +482,15 @@ export declare const tsconfigJsonSchema: z.ZodObject<{
482
482
  exclude?: string[] | undefined;
483
483
  } | undefined;
484
484
  }, {
485
+ files?: string[] | undefined;
486
+ include?: string[] | undefined;
487
+ exclude?: string[] | undefined;
485
488
  compileOnSave?: boolean | undefined;
486
489
  compilerOptions?: {
490
+ strict?: boolean | undefined;
491
+ lib?: ("esnext" | "ES6" | "ES2015" | "ES2020" | "ESNext" | "es6" | "es2015" | "es2020" | "ES5" | "ES2016" | "ES2017" | "ES2018" | "ES2019" | "ES2021" | "es5" | "es2016" | "es2017" | "es2018" | "es2019" | "es2021" | "ES7" | "ES2015.Collection" | "ES2015.Core" | "ES2015.Generator" | "ES2015.Iterable" | "ES2015.Promise" | "ES2015.Proxy" | "ES2015.Reflect" | "ES2015.Symbol.WellKnown" | "ES2015.Symbol" | "ES2016.Array.Include" | "ES2017.Intl" | "ES2017.Object" | "ES2017.SharedMemory" | "ES2017.String" | "ES2017.TypedArrays" | "ES2018.AsyncGenerator" | "ES2018.AsyncIterable" | "ES2018.Intl" | "ES2018.Promise" | "ES2018.Regexp" | "ES2019.Array" | "ES2019.Object" | "ES2019.String" | "ES2019.Symbol" | "ES2020.BigInt" | "ES2020.Promise" | "ES2020.String" | "ES2020.Symbol.WellKnown" | "ES2020.SharedMemory" | "ES2020.Intl" | "ES2021.Promise" | "ES2021.String" | "ES2021.WeakRef" | "ESNext.Array" | "ESNext.AsyncIterable" | "ESNext.BigInt" | "ESNext.Intl" | "ESNext.Promise" | "ESNext.String" | "ESNext.Symbol" | "ESNext.WeakRef" | "DOM" | "DOM.Iterable" | "ScriptHost" | "WebWorker" | "WebWorker.ImportScripts" | "WebWorker.Iterable" | "es7" | "es2015.collection" | "es2015.core" | "es2015.generator" | "es2015.iterable" | "es2015.promise" | "es2015.proxy" | "es2015.reflect" | "es2015.symbol.wellknown" | "es2015.symbol" | "es2016.array.include" | "es2017.intl" | "es2017.object" | "es2017.sharedmemory" | "es2017.string" | "es2017.typedarrays" | "es2018.asyncgenerator" | "es2018.asynciterable" | "es2018.intl" | "es2018.promise" | "es2018.regexp" | "es2019.array" | "es2019.object" | "es2019.string" | "es2019.symbol" | "es2020.bigint" | "es2020.promise" | "es2020.string" | "es2020.symbol.wellknown" | "es2020.sharedmemory" | "es2020.intl" | "es2021.promise" | "es2021.string" | "es2021.weakref" | "esnext.array" | "esnext.asynciterable" | "esnext.bigint" | "esnext.intl" | "esnext.promise" | "esnext.string" | "esnext.symbol" | "esnext.weakref" | "dom" | "dom.iterable" | "scripthost" | "webworker" | "webworker.importscripts" | "webworker.iterable")[] | undefined;
492
+ module?: "commonjs" | "esnext" | "CommonJS" | "AMD" | "System" | "UMD" | "ES6" | "ES2015" | "ES2020" | "ESNext" | "None" | "amd" | "system" | "umd" | "es6" | "es2015" | "es2020" | "none" | undefined;
493
+ types?: string[] | undefined;
487
494
  allowJs?: boolean | undefined;
488
495
  allowSyntheticDefaultImports?: boolean | undefined;
489
496
  allowUmdGlobalAccess?: boolean | undefined;
@@ -516,7 +523,7 @@ export declare const tsconfigJsonSchema: z.ZodObject<{
516
523
  forceConsistentCasingInFileNames?: boolean | undefined;
517
524
  generateCpuProfile?: string | undefined;
518
525
  importHelpers?: boolean | undefined;
519
- importsNotUsedAsValues?: "error" | "preserve" | "remove" | undefined;
526
+ importsNotUsedAsValues?: "preserve" | "remove" | "error" | undefined;
520
527
  incremental?: boolean | undefined;
521
528
  inlineSourceMap?: boolean | undefined;
522
529
  inlineSources?: boolean | undefined;
@@ -526,13 +533,11 @@ export declare const tsconfigJsonSchema: z.ZodObject<{
526
533
  jsxFragmentFactory?: string | undefined;
527
534
  jsxImportSource?: string | undefined;
528
535
  keyofStringsOnly?: boolean | undefined;
529
- lib?: ("esnext" | "ES6" | "ES2015" | "ES2020" | "ESNext" | "es6" | "es2015" | "es2020" | "ES5" | "ES2016" | "ES2017" | "ES2018" | "ES2019" | "ES2021" | "es5" | "es2016" | "es2017" | "es2018" | "es2019" | "es2021" | "ES7" | "ES2015.Collection" | "ES2015.Core" | "ES2015.Generator" | "ES2015.Iterable" | "ES2015.Promise" | "ES2015.Proxy" | "ES2015.Reflect" | "ES2015.Symbol.WellKnown" | "ES2015.Symbol" | "ES2016.Array.Include" | "ES2017.Intl" | "ES2017.Object" | "ES2017.SharedMemory" | "ES2017.String" | "ES2017.TypedArrays" | "ES2018.AsyncGenerator" | "ES2018.AsyncIterable" | "ES2018.Intl" | "ES2018.Promise" | "ES2018.Regexp" | "ES2019.Array" | "ES2019.Object" | "ES2019.String" | "ES2019.Symbol" | "ES2020.BigInt" | "ES2020.Promise" | "ES2020.String" | "ES2020.Symbol.WellKnown" | "ES2020.SharedMemory" | "ES2020.Intl" | "ES2021.Promise" | "ES2021.String" | "ES2021.WeakRef" | "ESNext.Array" | "ESNext.AsyncIterable" | "ESNext.BigInt" | "ESNext.Intl" | "ESNext.Promise" | "ESNext.String" | "ESNext.Symbol" | "ESNext.WeakRef" | "DOM" | "DOM.Iterable" | "ScriptHost" | "WebWorker" | "WebWorker.ImportScripts" | "WebWorker.Iterable" | "es7" | "es2015.collection" | "es2015.core" | "es2015.generator" | "es2015.iterable" | "es2015.promise" | "es2015.proxy" | "es2015.reflect" | "es2015.symbol.wellknown" | "es2015.symbol" | "es2016.array.include" | "es2017.intl" | "es2017.object" | "es2017.sharedmemory" | "es2017.string" | "es2017.typedarrays" | "es2018.asyncgenerator" | "es2018.asynciterable" | "es2018.intl" | "es2018.promise" | "es2018.regexp" | "es2019.array" | "es2019.object" | "es2019.string" | "es2019.symbol" | "es2020.bigint" | "es2020.promise" | "es2020.string" | "es2020.symbol.wellknown" | "es2020.sharedmemory" | "es2020.intl" | "es2021.promise" | "es2021.string" | "es2021.weakref" | "esnext.array" | "esnext.asynciterable" | "esnext.bigint" | "esnext.intl" | "esnext.promise" | "esnext.string" | "esnext.symbol" | "esnext.weakref" | "dom" | "dom.iterable" | "scripthost" | "webworker" | "webworker.importscripts" | "webworker.iterable")[] | undefined;
530
536
  listEmittedFiles?: boolean | undefined;
531
537
  listFiles?: boolean | undefined;
532
538
  listFilesOnly?: boolean | undefined;
533
539
  mapRoot?: string | undefined;
534
540
  maxNodeModuleJsDepth?: number | undefined;
535
- module?: "commonjs" | "esnext" | "CommonJS" | "AMD" | "System" | "UMD" | "ES6" | "ES2015" | "ES2020" | "ESNext" | "None" | "amd" | "system" | "umd" | "es6" | "es2015" | "es2020" | "none" | undefined;
536
541
  moduleResolution?: "node" | "classic" | undefined;
537
542
  newLine?: "CRLF" | "LF" | "crlf" | "lf" | undefined;
538
543
  noEmit?: boolean | undefined;
@@ -571,7 +576,6 @@ export declare const tsconfigJsonSchema: z.ZodObject<{
571
576
  skipLibCheck?: boolean | undefined;
572
577
  sourceMap?: boolean | undefined;
573
578
  sourceRoot?: string | undefined;
574
- strict?: boolean | undefined;
575
579
  strictBindCallApply?: boolean | undefined;
576
580
  strictFunctionTypes?: boolean | undefined;
577
581
  strictNullChecks?: boolean | undefined;
@@ -583,17 +587,13 @@ export declare const tsconfigJsonSchema: z.ZodObject<{
583
587
  traceResolution?: boolean | undefined;
584
588
  tsBuildInfoFile?: string | undefined;
585
589
  typeRoots?: string[] | undefined;
586
- types?: string[] | undefined;
587
590
  useDefineForClassFields?: boolean | undefined;
588
591
  useUnknownInCatchVariables?: boolean | undefined;
589
592
  watch?: boolean | undefined;
590
593
  watchDirectory?: "fixedPollingInterval" | "dynamicPriorityPolling" | "useFsEvents" | "fixedChunkSizePolling" | undefined;
591
594
  watchFile?: "fixedPollingInterval" | "priorityPollingInterval" | "dynamicPriorityPolling" | "useFsEvents" | "fixedChunkSizePolling" | "useFsEventsOnParentDirectory" | undefined;
592
595
  } | undefined;
593
- exclude?: string[] | undefined;
594
596
  extends?: string | undefined;
595
- files?: string[] | undefined;
596
- include?: string[] | undefined;
597
597
  references?: {
598
598
  path: string;
599
599
  originalPath?: string | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jakubmazanec/zod-utils",
3
- "version": "2.0.3-unstable.ec40525",
3
+ "version": "2.0.3",
4
4
  "description": "Collection of Zod schemas and utilities.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -27,10 +27,10 @@
27
27
  "typecheck": "tsc --project tsconfig.typecheck.json"
28
28
  },
29
29
  "dependencies": {
30
- "@jakubmazanec/ts-utils": "3.0.3-unstable.ec40525"
30
+ "@jakubmazanec/ts-utils": "^3.0.0"
31
31
  },
32
32
  "devDependencies": {
33
- "@jakubmazanec/eslint-config": "3.3.1-unstable.ec40525",
33
+ "@jakubmazanec/eslint-config": "^3.2.0",
34
34
  "@types/lodash": "^4.14.202",
35
35
  "@types/node": "^20.8.5",
36
36
  "@vitest/coverage-v8": "^1.3.1",
@@ -39,13 +39,13 @@
39
39
  "esbuild": "^0.21.4",
40
40
  "eslint": "^8.56.0",
41
41
  "lodash": "^4.17.21",
42
- "prettier": "^3.2.5",
43
- "prettier-plugin-packagejson": "^2.4.12",
42
+ "prettier": "^3.3.0",
43
+ "prettier-plugin-packagejson": "^2.5.0",
44
44
  "typedoc": "^0.25.13",
45
- "typedoc-plugin-markdown": "^3.17.1",
45
+ "typedoc-plugin-markdown": "^4.0.3",
46
46
  "typescript": "^5.4.5",
47
47
  "vitest": "^1.3.1",
48
- "zod": "^3.22.4"
48
+ "zod": "^3.23.8"
49
49
  },
50
50
  "peerDependencies": {
51
51
  "zod": "^3.19.1"