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

Method memo

ark/aot/declareNative.ts:220–223  ·  view source on GitHub ↗
(key: string, get: () => t)

Source from the content-addressed store, hash-verified

218 }
219
220 memo<t>(key: string, get: () => t): t {
221 if (!(key in this.cache)) this.cache[key] = get()
222 return this.cache[key] as t
223 }
224
225 get flags() {
226 return this.raw.flags

Callers 11

symbolMethod · 0.95
aliasSymbolMethod · 0.95
aliasTypeArgumentsMethod · 0.95
typesMethod · 0.95
targetMethod · 0.95
typeParametersMethod · 0.95
outerTypeParametersMethod · 0.95
getCallSignaturesMethod · 0.95
ambientAttachmentsMethod · 0.45
Playground.tsxFile · 0.45

Calls 1

getFunction · 0.50

Tested by

no test coverage detected