UNPKG

@cloudbase/types

Version:
23 lines (18 loc) 457 B
import { KV } from '.' export interface ICallFunctionOptions { name: string data?: KV<any> query?: KV<any> search?: string parse?: boolean // Used for 云函数2.0 CallContainer type?: string method?: string path?: string header?: KV<any> } export interface ICallFunctionResponse { requestId: string result: any } export type ICallFunction = (options: ICallFunctionOptions, callback?: Function) => Promise<ICallFunctionResponse>