mirror of
https://github.com/supabase/supabase.git
synced 2026-06-21 08:46:00 +08:00
6 lines
175 B
TypeScript
6 lines
175 B
TypeScript
export function isError(error: unknown): error is Error {
|
|
return (
|
|
!!error && typeof error === 'object' && 'message' in error && typeof error.message === 'string'
|
|
)
|
|
}
|