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

Function internedTable

ark/type/runtime.ts:1542–1546  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

1540
1541// a key's table, so modules written apart can intern alike
1542export const internedTable = (key: string): InternTable => {
1543 let table = tablesByKey.get(key)
1544 if (!table) tablesByKey.set(key, (table = new InternTable()))
1545 return table
1546}
1547
1548const checkedDefaults = /* @__PURE__ */ new InternTable()
1549

Callers 1

internedFunction · 0.70

Calls 2

getMethod · 0.65
setMethod · 0.45

Tested by

no test coverage detected