Skip to content

Commit

Permalink
Merge pull request #275 from htdangkhoa/develop
Browse files Browse the repository at this point in the history
update types
  • Loading branch information
htdangkhoa authored Jul 3, 2023
2 parents d8cd60c + 57ef7b5 commit e09704e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ declare module 'pure-http' {
query?: Record<string, any>;

params?: {
[key: string]: any,
wild?: string
[key: string]: any;
wild?: string;
};

body?: any;
Expand Down Expand Up @@ -242,9 +242,9 @@ declare module 'pure-http' {

all(path: string | RegExp, ...handler: Array<Handler>): this;

use(...middlewares: Array<Handler>): this;
use(...middlewares: Array<Handler | IRouter>): this;

use(path?: string | RegExp, ...middlewares: Array<Handler>): this;
use(path?: string | RegExp, ...middlewares: Array<Handler | IRouter>): this;

use(errorHandler: ErrorHandler): this;
}
Expand Down

0 comments on commit e09704e

Please sign in to comment.