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

Function unreadOf

ark/type/runtime.ts:1127–1132  ·  view source on GitHub ↗
(Ctx: IssuesClass)

Source from the content-addressed store, hash-verified

1125// call that leaves its errors unread costs (on schemabenchmarks.dev's invalid
1126// product, 255 instructions a call where this is 139)
1127const unreadOf = (Ctx: IssuesClass): IssuesClass => {
1128 if (Ctx === ArkErrors) return (unreadArkErrors ??= unreadClassOf(Ctx))
1129 let unread = unreadClasses.get(Ctx)
1130 if (!unread) unreadClasses.set(Ctx, (unread = unreadClassOf(Ctx)))
1131 return unread
1132}
1133
1134// An Apply reporting into ArkErrors calls no user code, so its issues can wait
1135// until they're read: errors are built with what finds them, in the place a

Callers 2

unreadErrorsFunction · 0.85
unreadCallErrorsFunction · 0.85

Calls 3

unreadClassOfFunction · 0.85
getMethod · 0.65
setMethod · 0.45

Tested by

no test coverage detected