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

Function isFileError

ark/aot/util.ts:13–14  ·  view source on GitHub ↗
(e: unknown)

Source from the content-addressed store, hash-verified

11const fileErrors = new WeakSet<Error>()
12
13export const isFileError = (e: unknown): e is Error =>
14 e instanceof Error && fileErrors.has(e)
15
16export const parseJsonText = (text: string, path: string): unknown => {
17 try {

Callers 1

failSettingsFunction · 0.90

Calls 1

hasMethod · 0.45

Tested by

no test coverage detected