1
0
mirror of https://github.com/checktheroads/hyperglass synced 2024-05-11 05:55:08 +00:00

12 lines
337 B
TypeScript
Raw Normal View History

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;
}