Skip to content

Commit

Permalink
feat: add http method patch to typings (#4125)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoxu authored and whxaxes committed Jan 2, 2020
1 parent 2109505 commit e9011e8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -631,6 +631,12 @@ declare module 'egg' {
put(path: RouterPath, fn: string): void;
put(path: RouterPath, ...middleware: any[]): void;

/**
* HTTP patch method
*/
patch(path: RouterPath, fn: string): void;
patch(path: RouterPath, ...middleware: any[]): void;

/**
* HTTP delete method
*/
Expand Down

0 comments on commit e9011e8

Please sign in to comment.