Skip to content

Commit

Permalink
fix: @func return type (#452)
Browse files Browse the repository at this point in the history
* fix: @func return type

* fix: type
  • Loading branch information
Lellansin authored Mar 30, 2020
1 parent 194c57c commit 9064743
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/midway-decorator/src/faas/fun.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ export interface FuncParams {

export function Func(
funHandler: string | FuncParams,
functionOptions: FuncParams | undefined
): ClassDecorator {
functionOptions?: FuncParams
) {
if (typeof funHandler !== 'string' && functionOptions === undefined) {
functionOptions = funHandler;
funHandler = '';
Expand Down

0 comments on commit 9064743

Please sign in to comment.