MCPcopy Create free account
hub / github.com/arktypeio/arktype / interned

Function interned

ark/type/runtime.ts:1578–1582  ·  view source on GitHub ↗
(
	key: string,
	create: (...args: args) => value,
	...args: args
)

Source from the content-addressed store, hash-verified

1576
1577// what a key names, created by whichever module reaches it first
1578export const interned = <value, args extends unknown[]>(
1579 key: string,
1580 create: (...args: args) => value,
1581 ...args: args
1582): value => intern(internedTable(key), [], () => create(...args))
1583
1584const helpersKey = /* @__PURE__ */ Symbol.for("arktype.helpers")
1585

Callers

nothing calls this directly

Calls 3

internFunction · 0.70
internedTableFunction · 0.70
createFunction · 0.50

Tested by

no test coverage detected