MCPcopy Create free account
hub / github.com/chakra-ui/panda / isLocError

Function isLocError

packages/cli/src/errors.ts:39–47  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

37}
38
39function isLocError(error: unknown): error is LocError {
40 return (
41 typeof error === 'object' &&
42 error !== null &&
43 'loc' in error &&
44 typeof (error as any).loc === 'object' &&
45 'message' in error
46 )
47}

Callers 1

handleErrorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected