UNPKG

@cloudbase/app

Version:
10 lines (9 loc) 429 B
import { ICallApiOptions, KV } from '@cloudbase/types'; import { ResponseObject } from '@cloudbase/adapter-interface'; export declare function callApi(callApiOptions: ICallApiOptions, opts: KV<any>): Promise<ResponseObject['data']>; export declare function generateCallApis(apiName: string): { [apiName: string]: typeof callApi; }; export declare function generateApis(): { [apiName: string]: typeof generateCallApis; };