@rspack/core 1.3.14 → 1.4.0-beta.0

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 (53) hide show
  1. package/compiled/@swc/types/index.d.ts +18 -2
  2. package/compiled/@swc/types/package.json +1 -1
  3. package/compiled/tinypool/README.md +4 -196
  4. package/compiled/tinypool/dist/common-Qw-RoVFD.js +28 -0
  5. package/compiled/tinypool/dist/entry/process.d.ts +1 -2
  6. package/compiled/tinypool/dist/entry/process.js +63 -83
  7. package/compiled/tinypool/dist/entry/utils.d.ts +3 -1
  8. package/compiled/tinypool/dist/entry/utils.js +3 -9
  9. package/compiled/tinypool/dist/entry/worker.d.ts +1 -2
  10. package/compiled/tinypool/dist/entry/worker.js +66 -94
  11. package/compiled/tinypool/dist/index.d.ts +132 -125
  12. package/compiled/tinypool/dist/index.js +771 -1035
  13. package/compiled/tinypool/dist/utils-B--2TaWv.js +38 -0
  14. package/compiled/tinypool/dist/utils-De75vAgL.js +10 -0
  15. package/compiled/tinypool/package.json +6 -22
  16. package/compiled/webpack-sources/index.js +112 -132
  17. package/compiled/webpack-sources/package.json +1 -1
  18. package/compiled/webpack-sources/types.d.ts +8 -6
  19. package/compiled/zod/dist/types/v4/classic/schemas.d.ts +19 -14
  20. package/compiled/zod/dist/types/v4/core/api.d.ts +5 -4
  21. package/compiled/zod/dist/types/v4/core/checks.d.ts +1 -1
  22. package/compiled/zod/dist/types/v4/core/core.d.ts +1 -1
  23. package/compiled/zod/dist/types/v4/core/registries.d.ts +3 -1
  24. package/compiled/zod/dist/types/v4/core/schemas.d.ts +33 -39
  25. package/compiled/zod/dist/types/v4/core/to-json-schema.d.ts +2 -2
  26. package/compiled/zod/dist/types/v4/core/util.d.ts +1 -1
  27. package/compiled/zod/dist/types/v4/locales/index.d.ts +1 -0
  28. package/compiled/zod/dist/types/v4/locales/ps.d.ts +4 -0
  29. package/compiled/zod/dist/types/v4/mini/schemas.d.ts +77 -125
  30. package/compiled/zod/index.js +33 -33
  31. package/compiled/zod/package.json +1 -1
  32. package/dist/BuildInfo.d.ts +17 -0
  33. package/dist/FileSystem.d.ts +26 -3
  34. package/dist/Module.d.ts +1 -13
  35. package/dist/Resolver.d.ts +2 -1
  36. package/dist/builtin-loader/swc/types.d.ts +255 -255
  37. package/dist/config/devServer.d.ts +10 -10
  38. package/dist/config/normalization.d.ts +1 -0
  39. package/dist/config/types.d.ts +10 -1
  40. package/dist/config/utils.d.ts +1 -0
  41. package/dist/config/zod.d.ts +1638 -1068
  42. package/dist/cssExtractLoader.js +5 -5
  43. package/dist/exports.d.ts +2 -1
  44. package/dist/index.js +550 -473
  45. package/dist/loader-runner/index.d.ts +0 -9
  46. package/dist/trace/index.d.ts +16 -18
  47. package/dist/worker.js +2 -2
  48. package/module.d.ts +1 -1
  49. package/package.json +9 -9
  50. package/compiled/tinypool/dist/chunk-6LX4VMOV.js +0 -31
  51. package/compiled/tinypool/dist/chunk-ACQHDOFQ.js +0 -12
  52. package/compiled/tinypool/dist/chunk-E2J7JLFN.js +0 -53
  53. package/compiled/tinypool/dist/chunk-UBWFVGJX.js +0 -38
@@ -84,8 +84,8 @@ declare interface GeneratedSourceInfo {
84
84
  generatedColumn?: number;
85
85
  source?: string;
86
86
  }
87
- declare interface Hash {
88
- update: (data: string | Buffer, inputEncoding?: string) => Hash;
87
+ declare interface HashLike {
88
+ update: (data: string | Buffer, inputEncoding?: string) => HashLike;
89
89
  digest: (encoding?: string) => string | Buffer;
90
90
  }
91
91
  declare interface MapOptions {
@@ -167,6 +167,8 @@ declare interface RawSourceMap {
167
167
  sourcesContent?: string[];
168
168
  mappings: string;
169
169
  file: string;
170
+ debugId?: string;
171
+ ignoreList?: number[];
170
172
  }
171
173
  declare class ReplaceSource extends Source {
172
174
  constructor(source: Source, name?: string);
@@ -213,7 +215,7 @@ declare class Source {
213
215
  size(): number;
214
216
  map(options?: MapOptions): null | RawSourceMap;
215
217
  sourceAndMap(options?: MapOptions): SourceAndMap;
216
- updateHash(hash: Hash): void;
218
+ updateHash(hash: HashLike): void;
217
219
  }
218
220
  declare interface SourceAndMap {
219
221
  source: SourceValue;
@@ -225,7 +227,7 @@ declare interface SourceLike {
225
227
  size?: () => number;
226
228
  map?: (options?: MapOptions) => null | RawSourceMap;
227
229
  sourceAndMap?: (options?: MapOptions) => SourceAndMap;
228
- updateHash?: (hash: Hash) => void;
230
+ updateHash?: (hash: HashLike) => void;
229
231
  }
230
232
  declare class SourceMapSource extends Source {
231
233
  constructor(
@@ -269,7 +271,6 @@ declare interface StreamChunksOptions {
269
271
  finalSource?: boolean;
270
272
  columns?: boolean;
271
273
  }
272
-
273
274
  export namespace util {
274
275
  export namespace stringBufferUtils {
275
276
  export let disableDualStringBufferCaching: () => void;
@@ -310,7 +311,7 @@ declare interface StreamChunksOptions {
310
311
  SourceLike,
311
312
  ConcatSourceChild,
312
313
  Replacement,
313
- Hash,
314
+ HashLike,
314
315
  MapOptions,
315
316
  RawSourceMap,
316
317
  SourceAndMap,
@@ -318,3 +319,4 @@ declare interface StreamChunksOptions {
318
319
  GeneratedSourceInfo,
319
320
  StreamChunksOptions
320
321
  };
322
+
@@ -32,7 +32,7 @@ export interface ZodType<out Output = unknown, out Input = unknown, out Internal
32
32
  nonoptional(params?: string | core.$ZodNonOptionalParams): ZodNonOptional<this>;
33
33
  nullable(): ZodNullable<this>;
34
34
  nullish(): ZodOptional<ZodNullable<this>>;
35
- default(def: util.NoUndefined<core.output<this>>): ZodDefault<this>;
35
+ default(def: core.output<this>): ZodDefault<this>;
36
36
  default(def: () => util.NoUndefined<core.output<this>>): ZodDefault<this>;
37
37
  prefault(def: () => core.input<this>): ZodPrefault<this>;
38
38
  prefault(def: core.input<this>): ZodPrefault<this>;
@@ -382,7 +382,7 @@ export interface ZodDate extends _ZodDate<core.$ZodDateInternals<Date>> {
382
382
  }
383
383
  export declare const ZodDate: core.$constructor<ZodDate>;
384
384
  export declare function date(params?: string | core.$ZodDateParams): ZodDate;
385
- export interface ZodArray<T extends core.SomeType = core.$ZodType> extends ZodType<any, any, core.$ZodArrayInternals<T>>, core.$ZodArray<T> {
385
+ export interface ZodArray<T extends core.SomeType = core.$ZodType> extends _ZodType<core.$ZodArrayInternals<T>>, core.$ZodArray<T> {
386
386
  element: T;
387
387
  min(minLength: number, params?: string | core.$ZodCheckMinLengthParams): this;
388
388
  nonempty(params?: string | core.$ZodCheckMinLengthParams): this;
@@ -476,7 +476,7 @@ export interface ZodMap<Key extends core.SomeType = core.$ZodType, Value extends
476
476
  }
477
477
  export declare const ZodMap: core.$constructor<ZodMap>;
478
478
  export declare function map<Key extends core.SomeType, Value extends core.SomeType>(keyType: Key, valueType: Value, params?: string | core.$ZodMapParams): ZodMap<Key, Value>;
479
- export interface ZodSet<T extends core.SomeType = core.$ZodType> extends ZodType<any, any, core.$ZodSetInternals<T>>, core.$ZodSet<T> {
479
+ export interface ZodSet<T extends core.SomeType = core.$ZodType> extends _ZodType<core.$ZodSetInternals<T>>, core.$ZodSet<T> {
480
480
  min(minSize: number, params?: string | core.$ZodCheckMinSizeParams): this;
481
481
  /** */
482
482
  nonempty(params?: string | core.$ZodCheckMinSizeParams): this;
@@ -485,7 +485,9 @@ export interface ZodSet<T extends core.SomeType = core.$ZodType> extends ZodType
485
485
  }
486
486
  export declare const ZodSet: core.$constructor<ZodSet>;
487
487
  export declare function set<Value extends core.SomeType>(valueType: Value, params?: string | core.$ZodSetParams): ZodSet<Value>;
488
- export interface ZodEnum<out T extends util.EnumLike = util.EnumLike> extends _ZodType<core.$ZodEnumInternals<T>>, core.$ZodEnum<T> {
488
+ export interface ZodEnum<
489
+ /** @ts-ignore Cast variance */
490
+ out T extends util.EnumLike = util.EnumLike> extends _ZodType<core.$ZodEnumInternals<T>>, core.$ZodEnum<T> {
489
491
  enum: T;
490
492
  options: Array<T[keyof T]>;
491
493
  extract<const U extends readonly (keyof T)[]>(values: U, params?: string | core.$ZodEnumParams): ZodEnum<util.Flatten<Pick<T, U[number]>>>;
@@ -509,7 +511,7 @@ export interface ZodLiteral<T extends util.Primitive = util.Primitive> extends _
509
511
  value: T;
510
512
  }
511
513
  export declare const ZodLiteral: core.$constructor<ZodLiteral>;
512
- export declare function literal<const T extends Array<util.Literal>>(value: T, params?: string | core.$ZodLiteralParams): ZodLiteral<T[number]>;
514
+ export declare function literal<const T extends ReadonlyArray<util.Literal>>(value: T, params?: string | core.$ZodLiteralParams): ZodLiteral<T[number]>;
513
515
  export declare function literal<const T extends util.Literal>(value: T, params?: string | core.$ZodLiteralParams): ZodLiteral<T>;
514
516
  export interface ZodFile extends _ZodType<core.$ZodFileInternals>, core.$ZodFile {
515
517
  min(size: number, params?: string | core.$ZodCheckMinSizeParams): this;
@@ -601,19 +603,22 @@ export declare function superRefine<T>(fn: (arg: T, payload: RefinementCtx<T>) =
601
603
  type ZodInstanceOfParams = core.Params<ZodCustom, core.$ZodIssueCustom, "type" | "check" | "checks" | "fn" | "abort" | "error" | "params" | "path">;
602
604
  declare function _instanceof<T extends typeof util.Class>(cls: T, params?: ZodInstanceOfParams): ZodCustom<InstanceType<T>, InstanceType<T>>;
603
605
  export { _instanceof as instanceof };
604
- export declare const stringbool: (_params?: string | core.$ZodStringBoolParams) => ZodPipe<ZodUnknown, ZodBoolean>;
605
- export type ZodJSONSchema = ZodUnion<[
606
+ export declare const stringbool: (_params?: string | core.$ZodStringBoolParams) => ZodPipe<ZodPipe<ZodString, ZodTransform<boolean, string>>, ZodBoolean>;
607
+ type _ZodJSONSchema = ZodUnion<[
606
608
  ZodString,
607
609
  ZodNumber,
608
610
  ZodBoolean,
609
611
  ZodNull,
610
612
  ZodArray<ZodJSONSchema>,
611
613
  ZodRecord<ZodString, ZodJSONSchema>
612
- ]> & {
613
- _zod: {
614
- input: util.JSONType;
615
- output: util.JSONType;
616
- };
617
- };
614
+ ]>;
615
+ type _ZodJSONSchemaInternals = _ZodJSONSchema["_zod"];
616
+ export interface ZodJSONSchemaInternals extends _ZodJSONSchemaInternals {
617
+ output: util.JSONType;
618
+ input: util.JSONType;
619
+ }
620
+ export interface ZodJSONSchema extends _ZodJSONSchema {
621
+ _zod: ZodJSONSchemaInternals;
622
+ }
618
623
  export declare function json(params?: string | core.$ZodCustomParams): ZodJSONSchema;
619
- export declare function preprocess<A, U extends core.SomeType>(fn: (arg: unknown, ctx: RefinementCtx) => A, schema: U): ZodPipe<ZodTransform<A, unknown>, U>;
624
+ export declare function preprocess<A, U extends core.SomeType, B = unknown>(fn: (arg: B, ctx: RefinementCtx) => A, schema: U): ZodPipe<ZodTransform<A, B>, U>;
@@ -260,14 +260,15 @@ export interface $ZodStringBoolParams extends TypeParams {
260
260
  truthy?: string[];
261
261
  falsy?: string[];
262
262
  /**
263
- * Options `"sensitive"`, `"insensitive"`
263
+ * Options: `"sensitive"`, `"insensitive"`
264
264
  *
265
- * Defaults to `"insensitive"`
265
+ * @default `"insensitive"`
266
266
  */
267
267
  case?: "sensitive" | "insensitive" | undefined;
268
268
  }
269
269
  export declare function _stringbool(Classes: {
270
270
  Pipe?: typeof schemas.$ZodPipe;
271
271
  Boolean?: typeof schemas.$ZodBoolean;
272
- Unknown?: typeof schemas.$ZodUnknown;
273
- }, _params?: string | $ZodStringBoolParams): schemas.$ZodPipe<schemas.$ZodUnknown, schemas.$ZodBoolean<boolean>>;
272
+ Transform?: typeof schemas.$ZodTransform;
273
+ String?: typeof schemas.$ZodString;
274
+ }, _params?: string | $ZodStringBoolParams): schemas.$ZodPipe<schemas.$ZodPipe<schemas.$ZodString, schemas.$ZodTransform<boolean, string>>, schemas.$ZodBoolean<boolean>>;
@@ -27,7 +27,7 @@ export interface $ZodCheckLessThanDef extends $ZodCheckDef {
27
27
  }
28
28
  export interface $ZodCheckLessThanInternals<T extends util.Numeric = util.Numeric> extends $ZodCheckInternals<T> {
29
29
  def: $ZodCheckLessThanDef;
30
- issc: errors.$ZodIssueTooSmall<T>;
30
+ issc: errors.$ZodIssueTooBig<T>;
31
31
  }
32
32
  export interface $ZodCheckLessThan<T extends util.Numeric = util.Numeric> extends $ZodCheck<T> {
33
33
  _zod: $ZodCheckLessThanInternals<T>;
@@ -20,7 +20,7 @@ export type $brand<T extends string | number | symbol = string | number | symbol
20
20
  [k in T]: true;
21
21
  };
22
22
  };
23
- export type $ZodBranded<T extends schemas._$ZodType, Brand extends string | number | symbol> = T & Record<"_zod", Record<"output", output<T> & $brand<Brand>>>;
23
+ export type $ZodBranded<T extends schemas.SomeType, Brand extends string | number | symbol> = T & Record<"_zod", Record<"output", output<T> & $brand<Brand>>>;
24
24
  export declare class $ZodAsyncError extends Error {
25
25
  constructor();
26
26
  }
@@ -4,7 +4,9 @@ export declare const $output: unique symbol;
4
4
  export type $output = typeof $output;
5
5
  export declare const $input: unique symbol;
6
6
  export type $input = typeof $input;
7
- export type $replace<Meta, S extends $ZodType> = Meta extends $output ? core.output<S> : Meta extends $input ? core.input<S> : Meta extends (infer M)[] ? $replace<M, S>[] : Meta extends object ? {
7
+ export type $replace<Meta, S extends $ZodType> = Meta extends $output ? core.output<S> : Meta extends $input ? core.input<S> : Meta extends (infer M)[] ? $replace<M, S>[] : Meta extends (...args: infer P) => infer R ? (...args: {
8
+ [K in keyof P]: $replace<P[K], S>;
9
+ }) => $replace<R, S> : Meta extends object ? {
8
10
  [K in keyof Meta]: $replace<Meta[K], S>;
9
11
  } : Meta;
10
12
  type MetadataType = Record<string, unknown> | undefined;
@@ -78,13 +78,15 @@ export interface $ZodTypeInternals<out O = unknown, out I = unknown> extends _$Z
78
78
  input: I;
79
79
  }
80
80
  export type $ZodStandardSchema<T> = StandardSchemaV1.Props<core.input<T>, core.output<T>>;
81
- export interface _$ZodType<T extends _$ZodTypeInternals = _$ZodTypeInternals> {
82
- _zod: T;
83
- }
84
- export type SomeType = _$ZodType;
85
- export interface $ZodType<O = unknown, I = unknown, Internals extends $ZodTypeInternals<O, I> = $ZodTypeInternals<O, I>> extends _$ZodType<Internals> {
81
+ export type SomeType = {
82
+ _zod: _$ZodTypeInternals;
83
+ };
84
+ export interface $ZodType<O = unknown, I = unknown, Internals extends $ZodTypeInternals<O, I> = $ZodTypeInternals<O, I>> {
85
+ _zod: Internals;
86
86
  "~standard": $ZodStandardSchema<this>;
87
87
  }
88
+ export interface _$ZodType<T extends $ZodTypeInternals = $ZodTypeInternals> extends $ZodType<T["output"], T["input"], T> {
89
+ }
88
90
  export declare const $ZodType: core.$constructor<$ZodType>;
89
91
  export { clone } from "./util.js";
90
92
  export interface $ZodStringDef extends $ZodTypeDef {
@@ -106,8 +108,7 @@ export interface $ZodStringInternals<Input> extends $ZodTypeInternals<string, In
106
108
  contentEncoding: string;
107
109
  }>;
108
110
  }
109
- export interface $ZodString<Input = unknown> extends $ZodType {
110
- _zod: $ZodStringInternals<Input>;
111
+ export interface $ZodString<Input = unknown> extends _$ZodType<$ZodStringInternals<Input>> {
111
112
  }
112
113
  export declare const $ZodString: core.$constructor<$ZodString>;
113
114
  export interface $ZodStringFormatDef<Format extends checks.$ZodStringFormats = checks.$ZodStringFormats> extends $ZodStringDef, checks.$ZodCheckStringFormatDef<Format> {
@@ -509,29 +510,9 @@ export interface $ZodArrayInternals<T extends SomeType = $ZodType> extends $ZodT
509
510
  def: $ZodArrayDef<T>;
510
511
  isst: errors.$ZodIssueInvalidType;
511
512
  }
512
- export interface $ZodArray<T extends SomeType = $ZodType> extends $ZodType {
513
- _zod: $ZodArrayInternals<T>;
513
+ export interface $ZodArray<T extends SomeType = $ZodType> extends $ZodType<core.output<T>[], core.input<T>[], $ZodArrayInternals<T>> {
514
514
  }
515
515
  export declare const $ZodArray: core.$constructor<$ZodArray>;
516
- export type $ZodShape = Readonly<{
517
- [k: string]: $ZodType;
518
- }>;
519
- export interface $ZodObjectDef<Shape extends $ZodShape = $ZodShape> extends $ZodTypeDef {
520
- type: "object";
521
- shape: Shape;
522
- catchall?: $ZodType | undefined;
523
- }
524
- export interface $ZodObjectInternals<
525
- /** @ts-ignore Cast variance */
526
- out Shape extends Readonly<$ZodShape> = Readonly<$ZodShape>, out Config extends $ZodObjectConfig = $ZodObjectConfig> extends _$ZodTypeInternals {
527
- def: $ZodObjectDef<Shape>;
528
- config: Config;
529
- isst: errors.$ZodIssueInvalidType | errors.$ZodIssueUnrecognizedKeys;
530
- propValues: util.PropValues;
531
- output: $InferObjectOutput<Shape, Config["out"]>;
532
- input: $InferObjectInput<Shape, Config["in"]>;
533
- }
534
- export type $ZodLooseShape = Record<string, any>;
535
516
  type OptionalOutSchema = {
536
517
  _zod: {
537
518
  optout: "optional";
@@ -542,21 +523,15 @@ type OptionalInSchema = {
542
523
  optin: "optional";
543
524
  };
544
525
  };
545
- export type $InferObjectOutputFallback<T extends $ZodLooseShape, Extra extends Record<string, unknown>> = string extends keyof T ? object : keyof (T & Extra) extends never ? Record<string, never> : util.Prettify<{
546
- -readonly [k in keyof T]: core.output<T[k]>;
547
- } & Extra>;
548
- export type $InferObjectInputFallback<T extends $ZodLooseShape, Extra extends Record<string, unknown>> = string extends keyof T ? object : keyof (T & Extra) extends never ? Record<string, never> : util.Prettify<{
549
- -readonly [k in keyof T]: core.input<T[k]>;
550
- } & Extra>;
551
526
  export type $InferObjectOutput<T extends $ZodLooseShape, Extra extends Record<string, unknown>> = string extends keyof T ? object : keyof (T & Extra) extends never ? Record<string, never> : util.Prettify<{
552
- -readonly [k in keyof T as T[k] extends OptionalOutSchema ? never : k]: core.output<T[k]>;
527
+ -readonly [k in keyof T as T[k] extends OptionalOutSchema ? never : k]: T[k]["_zod"]["output"];
553
528
  } & {
554
- -readonly [k in keyof T as T[k] extends OptionalOutSchema ? k : never]?: core.output<T[k]>;
529
+ -readonly [k in keyof T as T[k] extends OptionalOutSchema ? k : never]?: T[k]["_zod"]["output"];
555
530
  } & Extra>;
556
531
  export type $InferObjectInput<T extends $ZodLooseShape, Extra extends Record<string, unknown>> = string extends keyof T ? object : keyof (T & Extra) extends never ? Record<string, never> : util.Prettify<{
557
- -readonly [k in keyof T as T[k] extends OptionalInSchema ? never : k]: core.input<T[k]>;
532
+ -readonly [k in keyof T as T[k] extends OptionalInSchema ? never : k]: T[k]["_zod"]["input"];
558
533
  } & {
559
- -readonly [k in keyof T as T[k] extends OptionalInSchema ? k : never]?: core.input<T[k]>;
534
+ -readonly [k in keyof T as T[k] extends OptionalInSchema ? k : never]?: T[k]["_zod"]["input"];
560
535
  } & Extra>;
561
536
  export type $ZodObjectConfig = {
562
537
  out: Record<string, unknown>;
@@ -574,7 +549,7 @@ export type $strip = {
574
549
  out: {};
575
550
  in: {};
576
551
  };
577
- export type $catchall<T extends _$ZodType> = {
552
+ export type $catchall<T extends SomeType> = {
578
553
  out: {
579
554
  [k: string]: core.output<T>;
580
555
  };
@@ -582,6 +557,25 @@ export type $catchall<T extends _$ZodType> = {
582
557
  [k: string]: core.input<T>;
583
558
  };
584
559
  };
560
+ export type $ZodShape = Readonly<{
561
+ [k: string]: $ZodType;
562
+ }>;
563
+ export interface $ZodObjectDef<Shape extends $ZodShape = $ZodShape> extends $ZodTypeDef {
564
+ type: "object";
565
+ shape: Shape;
566
+ catchall?: $ZodType | undefined;
567
+ }
568
+ export interface $ZodObjectInternals<
569
+ /** @ts-ignore Cast variance */
570
+ out Shape extends Readonly<$ZodShape> = Readonly<$ZodShape>, out Config extends $ZodObjectConfig = $ZodObjectConfig> extends _$ZodTypeInternals {
571
+ def: $ZodObjectDef<Shape>;
572
+ config: Config;
573
+ isst: errors.$ZodIssueInvalidType | errors.$ZodIssueUnrecognizedKeys;
574
+ propValues: util.PropValues;
575
+ output: $InferObjectOutput<Shape, Config["out"]>;
576
+ input: $InferObjectInput<Shape, Config["in"]>;
577
+ }
578
+ export type $ZodLooseShape = Record<string, any>;
585
579
  export interface $ZodObject<
586
580
  /** @ts-ignore Cast variance */
587
581
  out Shape extends Readonly<$ZodShape> = Readonly<$ZodShape>, out Params extends $ZodObjectConfig = $ZodObjectConfig> extends $ZodType<any, any, $ZodObjectInternals<Shape, Params>> {
@@ -70,9 +70,9 @@ export declare class JSONSchemaGenerator {
70
70
  process(schema: schemas.$ZodType, _params?: ProcessParams): JSONSchema.BaseSchema;
71
71
  emit(schema: schemas.$ZodType, _params?: EmitParams): JSONSchema.BaseSchema;
72
72
  }
73
- interface ToJSONSchemaParams extends Omit<JSONSchemaGeneratorParams & EmitParams, never> {
73
+ interface ToJSONSchemaParams extends Omit<JSONSchemaGeneratorParams & EmitParams, "external"> {
74
74
  }
75
- interface RegistryToJSONSchemaParams extends Omit<JSONSchemaGeneratorParams & EmitParams, never> {
75
+ interface RegistryToJSONSchemaParams extends Omit<JSONSchemaGeneratorParams & EmitParams, "external"> {
76
76
  uri?: (id: string) => string;
77
77
  }
78
78
  export declare function toJSONSchema(schema: schemas.$ZodType, _params?: ToJSONSchemaParams): JSONSchema.BaseSchema;
@@ -131,7 +131,7 @@ export declare function isObject(data: any): data is Record<PropertyKey, unknown
131
131
  export declare const allowsEval: {
132
132
  value: boolean;
133
133
  };
134
- export declare function isPlainObject(data: any): data is Record<PropertyKey, unknown>;
134
+ export declare function isPlainObject(o: any): o is Record<PropertyKey, unknown>;
135
135
  export declare function numKeys(data: any): number;
136
136
  export declare const getParsedType: (data: any) => ParsedTypes;
137
137
  export declare const propertyKeyTypes: Set<string>;
@@ -22,6 +22,7 @@ export { default as ms } from "./ms.js";
22
22
  export { default as nl } from "./nl.js";
23
23
  export { default as no } from "./no.js";
24
24
  export { default as ota } from "./ota.js";
25
+ export { default as ps } from "./ps.js";
25
26
  export { default as pl } from "./pl.js";
26
27
  export { default as pt } from "./pt.js";
27
28
  export { default as ru } from "./ru.js";
@@ -0,0 +1,4 @@
1
+ import type * as errors from "../core/errors.js";
2
+ export default function (): {
3
+ localeError: errors.$ZodErrorMap;
4
+ };