Skip to content

Commit

Permalink
fix AutoRouterOptions missing property type
Browse files Browse the repository at this point in the history
  • Loading branch information
istarkov committed Jul 6, 2024
1 parent f4d79f0 commit 6d4f632
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/types/AutoRouterOptions.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
import { RequestHandler } from './RequestHandler'
import { ResponseHandler } from './ResponseHandler'
import { RouterOptions } from './RouterOptions'

export type AutoRouterOptions<
RequestType,
Args extends any[],
> = {
missing?: RequestHandler<RequestType, Args>
export type AutoRouterOptions<RequestType, Args extends any[]> = {
missing?: ResponseHandler<any, RequestType, Args>
format?: ResponseHandler
} & RouterOptions<RequestType, Args>

0 comments on commit 6d4f632

Please sign in to comment.