mirror of
https://github.com/thatmattlove/hyperglass.git
synced 2026-04-27 18:26:21 +00:00
11 lines
337 B
TypeScript
11 lines
337 B
TypeScript
export function isStackError(error: any): error is Error {
|
|
return error !== null && 'message' in error;
|
|
}
|
|
|
|
export function isFetchError(error: any): error is Response {
|
|
return error !== null && 'statusText' in error;
|
|
}
|
|
|
|
export function isLGError(error: any): error is TQueryResponse {
|
|
return error !== null && 'output' in error;
|
|
}
|