UNPKG

graphql-request

Version:

Minimal GraphQL client supporting Node and browsers for scripts or simple apps.

12 lines (10 loc) 275 B
export const TypeErrorSymbol = Symbol(`TypeError`) export type TSError< Location extends string, Message extends string, Context extends Record<string, unknown> = never, > = { [TypeErrorSymbol]: true message: `Error (${Location}): ${Message}` context: Context }