Skip to content

Commit

Permalink
fix(app-service): fix invoke() function return type;
Browse files Browse the repository at this point in the history
  • Loading branch information
maslow committed Nov 3, 2021
1 parent 8fbd1a0 commit edd1f8a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/app-service/src/cloud-sdk/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { AxiosStatic } from "axios"
import { Db, getDb } from "database-proxy"
import { FunctionContext, FunctionResult, CloudFunction } from "cloud-function-engine"
import { FunctionContext, CloudFunction } from "cloud-function-engine"
import { FileStorageInterface } from "../lib/storage/interface"
import * as mongodb from "mongodb"
import { DatabaseAgent } from "../lib/database"
Expand All @@ -11,7 +11,7 @@ import { invokeInFunction } from "./invoke"
import { createFileStorage } from "../lib/storage"


export type InvokeFunctionType = (name: string, param: FunctionContext) => Promise<FunctionResult>
export type InvokeFunctionType = (name: string, param: FunctionContext) => Promise<any>
export type EmitFunctionType = (event: string, param: any) => void
export type GetTokenFunctionType = (payload: any, secret?: string) => string
export type ParseTokenFunctionType = (token: string, secret?: string) => any | null
Expand Down

0 comments on commit edd1f8a

Please sign in to comment.