UNPKG

graphql-toe

Version:

GraphQL Throw-On-Error - incorporate error handling back into the reading of your data, so you can handle errors in the most natural way.

10 lines (9 loc) 284 B
interface GraphQLError { message: string; path: ReadonlyArray<string | number> | undefined; } export declare function toe<TData extends Record<string, any>>(result: { data?: TData | null | undefined; errors?: readonly GraphQLError[] | undefined; }): TData; export {};