npm.io
1.1.3 • Published 2 years ago

@types/gramps__rest-helpers

Licence
MIT
Version
1.1.3
Deps
0
Size
4 kB
Vulns
0
Weekly
0
Stars
51.4K

Installation

npm install --save @types/gramps__rest-helpers

Summary

This package contains type definitions for @gramps/rest-helpers (https://github.com/gramps-graphql/rest-helpers).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/gramps__rest-helpers.

index.d.ts

export class GraphQLConnector {
    constructor();

    apiBaseUri: string;
    headers: object;
    request: any;
    cacheExpiry: number;
    enableCache: boolean;
    redis: boolean;
    get(endpoint: string): Promise<any>;
    post(endpoint: string, body: object, options: object): Promise<any>;
    put(endpoint: string, body: object, options: object): Promise<any>;
    delete(endpoint: string, options: object): Promise<any>;
}

export class GraphQLModel {
    connector: GraphQLConnector;

    constructor({});
}

Additional Details

  • Last updated: Tue, 07 Nov 2023 0337 GMT
  • Dependencies: none

Credits

These definitions were written by Claude Ciocan.