Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
11
const
fileErrors =
new
WeakSet<Error>()
12
13
export
const
isFileError = (e: unknown): e is Error =>
14
e instanceof Error && fileErrors.has(e)
15
16
export
const
parseJsonText = (text: string, path: string): unknown => {
17
try {
Callers
1
failSettings
Function · 0.90
Calls
1
has
Method · 0.45
Tested by
no test coverage detected