UNPKG

node-beget

Version:

Client library for accessing Beget API

10 lines (9 loc) 373 B
import { BegetOptions } from './options/beget-options'; import * as Beget from './types/controller.interface'; export declare class BegetRequest { private request; private readonly credentials; constructor(config: BegetOptions); private safeRequest; api<T extends Beget.Controller, R>(section: T, method: Beget.Methods[T], data?: object): Promise<R>; }