@graphql-codegen/cli
Version:
<p align="center"> <img src="https://github.com/dotansimha/graphql-code-generator/blob/master/logo.png?raw=true" /> </p>
12 lines (11 loc) • 388 B
TypeScript
import { DetailedError } from '@graphql-codegen/plugin-helpers';
declare type CompositeError = Error | DetailedError;
declare type ListrError = Error & {
errors: CompositeError[];
};
export declare function isListrError(err: Error & {
name?: unknown;
errors?: unknown;
}): err is ListrError;
export declare function cliError(err: any, exitOnError?: boolean): void;
export {};