UNPKG

@konker.dev/tiny-error-fp

Version:

A configurable error for Typescript projects based on Effect-ts

16 lines 594 B
export declare const hasTag: <T extends string>(tag: T) => (x: unknown) => x is { readonly _tag: T; }; export declare function hasErrorMessage(x: unknown): x is { readonly message: string; }; export declare function hasErrorName(x: unknown): x is { readonly name: string; }; export declare function hasErrorStack(x: unknown): x is { readonly stack: string; }; export declare function isError<E extends Error = Error>(x: unknown): x is E; export declare function toError(x: unknown): Error; export declare function getStackTraceString(): string; //# sourceMappingURL=lib.d.ts.map