UNPKG

knip

Version:

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

16 lines (15 loc) 712 B
import { core } from 'zod/mini'; 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 core.$ZodError<any> | ConfigurationError | LoaderError; export declare const hasErrorCause: (error: Error) => error is ErrorWithCause; export declare const isConfigurationError: (error: Error) => error is ConfigurationError; export declare const isModuleNotFoundError: (error: Error) => boolean; export declare const isLoaderError: (error: Error) => error is LoaderError; export declare const getKnownErrors: (error: Error) => Error[]; export {};