UNPKG

knip

Version:

Find and fix unused dependencies, exports and files in your TypeScript and JavaScript projects

14 lines (13 loc) 557 B
import { ZodError } from 'zod'; interface ErrorWithCause extends Error { cause: Error; } export declare class ConfigurationError extends Error { } export declare class LoaderError extends Error { } export declare const isKnownError: (error: Error) => error is ConfigurationError | LoaderError | ZodError<any>; export declare const isDisplayReason: (error: Error) => error is ErrorWithCause; export declare const isConfigurationError: (error: Error) => error is ConfigurationError; export declare const getKnownError: (error: Error) => Error; export {};