@types/graphql-errors
TypeScript icon, indicating that this package has built-in type declarations

2.1.7 • Public • Published

Installation

npm install --save @types/graphql-errors

Summary

This package contains type definitions for graphql-errors (https://github.com/kadirahq/graphql-errors).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/graphql-errors.

index.d.ts

import { GraphQLSchema } from "graphql";

export type HandlerFunction = (err: Error) => Error;

export function setDefaultHandler(fn: HandlerFunction): void;

export function maskErrors(schema: GraphQLSchema, fn?: HandlerFunction): void;

export class UserError extends Error {
    constructor(message: string);
}

Additional Details

  • Last updated: Tue, 07 Nov 2023 03:09:37 GMT
  • Dependencies: graphql

Credits

These definitions were written by Matías Olivera.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/graphql-errors

Weekly Downloads

234

Version

2.1.7

License

MIT

Unpacked Size

3.3 kB

Total Files

5

Last publish

Collaborators

  • types