avancement planning
This commit is contained in:
+2
-2
@@ -9,11 +9,11 @@ export type $replace<Meta, S extends $ZodType> = Meta extends $output ? core.out
|
||||
}) => $replace<R, S> : Meta extends object ? {
|
||||
[K in keyof Meta]: $replace<Meta[K], S>;
|
||||
} : Meta;
|
||||
type MetadataType = Record<string, unknown> | undefined;
|
||||
type MetadataType = object | undefined;
|
||||
export declare class $ZodRegistry<Meta extends MetadataType = MetadataType, Schema extends $ZodType = $ZodType> {
|
||||
_meta: Meta;
|
||||
_schema: Schema;
|
||||
_map: Map<Schema, $replace<Meta, Schema>>;
|
||||
_map: WeakMap<Schema, $replace<Meta, Schema>>;
|
||||
_idmap: Map<string, Schema>;
|
||||
add<S extends Schema>(schema: S, ..._meta: undefined extends Meta ? [$replace<Meta, S>?] : [$replace<Meta, S>]): this;
|
||||
clear(): this;
|
||||
|
||||
Reference in New Issue
Block a user