Skip to content

Commit

Permalink
feat(types): declare type MethodType
Browse files Browse the repository at this point in the history
  • Loading branch information
waitingsong committed Apr 10, 2023
1 parent fa9b65a commit 794b49d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/types/src/lib/func.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ export interface Func {
(this: any, ...args: any[]): any | Promise<any>
}

export type MethodType = (...input: any[]) => (any | Promise<any>)

0 comments on commit 794b49d

Please sign in to comment.