From 477d6678c3dea0813f54bd0fcc79447ea07bdd19 Mon Sep 17 00:00:00 2001 From: Kevin Whitley Date: Sun, 14 Apr 2024 15:39:15 -0500 Subject: [PATCH] more types cleanup --- CHANGELOG.md | 2 ++ src/AutoRouter.ts | 2 +- src/types/AutoRouterOptions.ts | 1 - 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 29a7598..b46030e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ ## Changelog +#### v5.0.15 + - maintenance: types cleanup and publishing test #### v5.0.14 - maintenance: types cleanup and publishing test #### v5.0.13 diff --git a/src/AutoRouter.ts b/src/AutoRouter.ts index e83eda9..04da2fa 100644 --- a/src/AutoRouter.ts +++ b/src/AutoRouter.ts @@ -13,7 +13,7 @@ export const AutoRouter = < missing = () => error(404), finally: f = [], before = [], - ...options }: AutoRouterOptions = {} + ...options }: AutoRouterOptions = {} ) => Router({ before: [ // @ts-ignore diff --git a/src/types/AutoRouterOptions.ts b/src/types/AutoRouterOptions.ts index 41715ae..6688ad3 100644 --- a/src/types/AutoRouterOptions.ts +++ b/src/types/AutoRouterOptions.ts @@ -5,7 +5,6 @@ import { RouterOptions } from './RouterOptions' export type AutoRouterOptions< RequestType, Args extends any[], - ResponseType > = { missing?: RequestHandler format?: ResponseHandler