Error
Error
TypeIdError
Added in v1.0.0
Source
Signature
declare function TypeIdError<TypeId extends symbol, Tag extends string>(
typeId: TypeId,
tag: Tag,
): <A extends Record<string, any>>(
args: Simplify<A>,
) => YieldableError &
Record<TypeId, TypeId> & {
readonly _tag: Tag;
} & Readonly<A>;Model
SystemErrorReason
Added in v1.0.0
Source
Signature
declare const SystemErrorReason: Literal<"AlreadyExists">;SystemErrorReason type
Added in v1.0.0
Source
Signature
type SystemErrorReason = typeof SystemErrorReason.Type;Models
BadArgument
Added in v1.0.0
Source
Signature
declare class BadArgument extends any {
constructor();
readonly [TypeId]: typeof TypeId;
message: string;
}Signature
declare const Module: Literal<"Clipboard">;PlatformError
Added in v1.0.0
Source
Signature
declare const PlatformError: Union<[typeof BadArgument, typeof SystemError]>;PlatformError type
Added in v1.0.0
Source
Signature
type PlatformError = BadArgument | SystemError;Models
SystemError
Added in v1.0.0
Source
Signature
declare class SystemError extends any {
constructor();
readonly [TypeId]: typeof TypeId;
message: string;
}Refinements
isPlatformError
Added in v1.0.0
Source
Signature
declare function isPlatformError(u: unknown): u is PlatformError;