Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
kwhitley committed Apr 14, 2024
1 parent cd6cdb0 commit 277c84e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/AutoRouter.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Router } from './Router'
import { error } from './error'
import { json } from './json'
import { AutoRouterOptions, AutoRouterType, IRequest, IRequestStrict} from './types'
import { AutoRouterOptions, AutoRouterType, IRequest } from './types'
import { withParams } from './withParams'

export const AutoRouter = <
Expand Down
2 changes: 1 addition & 1 deletion src/Router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const Router = <
RequestType = IRequest,
Args extends any[] = any[],
ResponseType = any
>({ base = '', routes = [], ...other }: RouterOptions<RequestType, Args, ResponseType> = {}): RouterType<RequestType, Args, ResponseType> =>
>({ base = '', routes = [], ...other }: RouterOptions<RequestType, Args> = {}): RouterType<RequestType, Args, ResponseType> =>
({
__proto__: new Proxy({}, {
// @ts-expect-error (we're adding an expected prop "path" to the get)
Expand Down
1 change: 0 additions & 1 deletion src/types/RouterOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { ResponseHandler } from './ResponseHandler'
export type RouterOptions<
RequestType = IRequest,
Args extends any[] = [],
ResponseType = any
> = {
before?: RequestHandler<RequestType, Args>[]
catch?: ErrorHandler<StatusError, RequestType, Args>
Expand Down

0 comments on commit 277c84e

Please sign in to comment.