MCPcopy
hub / github.com/colinhacks/zod / remove

Method remove

packages/zod/src/v4/core/registries.ts:51–58  ·  view source on GitHub ↗
(schema: Schema)

Source from the content-addressed store, hash-verified

49 }
50
51 remove(schema: Schema): this {
52 const meta: any = this._map.get(schema);
53 if (meta && typeof meta === "object" && "id" in meta) {
54 this._idmap.delete(meta.id!);
55 }
56 this._map.delete(schema);
57 return this;
58 }
59
60 get<S extends Schema>(schema: S): $replace<Meta, S> | undefined {
61 // return this._map.get(schema) as any;

Callers 2

registries.test.tsFile · 0.80

Calls 1

getMethod · 0.80

Tested by

no test coverage detected