Skip to content

Commit f35f2f8

Browse files
fix(typedefs): allow configuration of test middleware
1 parent f678219 commit f35f2f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates/boltzmann.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ export namespace middleware {
130130
}
131131

132132
export function test(options?: {
133-
middleware?: Middleware[]
133+
middleware?: (Middleware | [Middleware, ...any[]])[]
134134
handlers?: { [key: string]: Handler }
135135
bodyParsers?: BodyParser[]
136136
after?: (xs: any) => any
@@ -152,7 +152,7 @@ export namespace decorators {
152152
}
153153

154154
export function test(options?: {
155-
middleware?: Middleware[]
155+
middleware?: (Middleware | [Middleware, ...any[]])[]
156156
handlers?: { [key: string]: Handler }
157157
bodyParsers?: BodyParser[]
158158
after?: (xs: any) => any

0 commit comments

Comments
 (0)