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

1.1.3 • Public • Published

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 03:09:37 GMT
  • Dependencies: none

Credits

These definitions were written by Claude Ciocan.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/gramps__rest-helpers

Weekly Downloads

0

Version

1.1.3

License

MIT

Unpacked Size

3.67 kB

Total Files

5

Last publish

Collaborators

  • types