UNPKG

426 BTypeScriptView Raw
1import { ConfigErrorCode } from './Config.types';
2/**
3 * Based on `JsonFileError` from `@expo/json-file`
4 */
5export declare class ConfigError extends Error {
6 code: ConfigErrorCode;
7 cause?: Error | undefined;
8 constructor(message: string, code: ConfigErrorCode, cause?: Error | undefined);
9}
10export declare function errorFromJSON({ name, ...json }: any): Error;
11export declare function errorToJSON(error: any): any;