@cloudbase/types
Version:
cloudbase javascript sdk types
23 lines (18 loc) • 457 B
TypeScript
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>