Functionservicesv0.6.0
isSeedcordError<Type, Code>(
error: unknown,
type?: Type,
code?: Code
): error is ErrorCodeFilter<Type, Code>isSeedcordError<Type, Code>(
error: unknown,
type?: Type,
code?: Code
): error is ErrorCodeFilter<Type, Code>Type
What kind of SeedcordErrorTypeStringSeedcordErrorTypeString to filter by.
TypeTypeWhat kind of SeedcordErrorTypeStringSeedcordErrorTypeString to filter by.
Code
The specific SeedcordErrorCodeSeedcordErrorCode to filter by.
CodeCodeThe specific SeedcordErrorCodeSeedcordErrorCode to filter by.
error
type?
type?: Typetype?: TypeOptional error class discriminator (Error, TypeError, or RangeError).
code?
code?: Codecode?: CodeOptional SeedcordErrorCodeSeedcordErrorCode discriminator to narrow by code.