UNPKG

ohmygql

Version:

[![npm version][npm-version-src]][npm-version-href] [![npm downloads][npm-downloads-src]][npm-downloads-href] [![Github Actions][github-actions-src]][github-actions-href] [![Codecov][codecov-src]][codecov-href]

33 lines (31 loc) 735 B
type GqlOperation = { name?: string; type?: 'query' | 'mutation'; }; type GraphQLError = { message?: string; locations?: { line: number; column: number; }[]; extensions?: { code?: string; [key: string]: any; }; }; type GqlResponse<T = any> = { data?: T; errors?: GraphQLError[]; }; declare class GqlError extends Error { name: 'GqlError'; status?: number; operation?: GqlOperation; gqlErrors?: GraphQLError[] | undefined; constructor(message: string, args: { status?: number; operation?: GqlOperation; gqlErrors?: GraphQLError[]; }); } export { GqlOperation as G, GraphQLError as a, GqlResponse as b, GqlError as c };