Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

isStorageError

import { isStorageError } from "https://esm.sh/@supabase/storage-js@2.95.3/dist/index.d.mts";

Type guard to check if an error is a StorageError

function isStorageError(error: unknown): error is StorageError;
§
isStorageError(error: unknown): error is StorageError
[src]

§Parameters

§
error: unknown
[src]
  • The error to check

§Return Type

§

True if the error is a StorageError