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

Function internIn

ark/type/runtime.ts:1570–1575  ·  view source on GitHub ↗
(
	holder: object,
	holes: readonly unknown[],
	create: () => value,
	defaults?: readonly DefaultKey[]
)

Source from the content-addressed store, hash-verified

1568
1569// as intern, in the table of an object a module declares for it
1570export const internIn = <value>(
1571 holder: object,
1572 holes: readonly unknown[],
1573 create: () => value,
1574 defaults?: readonly DefaultKey[]
1575): value => intern(tablesByHolder.next(holder), holes, create, defaults)
1576
1577// what a key names, created by whichever module reaches it first
1578export const interned = <value, args extends unknown[]>(

Callers

nothing calls this directly

Calls 2

internFunction · 0.70
nextMethod · 0.45

Tested by

no test coverage detected