mirror of
https://github.com/supabase/supabase.git
synced 2026-10-06 18:05:11 +03: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'
|
|
)
|
|
}
|