diff --git a/packages/typed-express-router/src/types.ts b/packages/typed-express-router/src/types.ts index f070c8da..22592e8d 100644 --- a/packages/typed-express-router/src/types.ts +++ b/packages/typed-express-router/src/types.ts @@ -1,8 +1,13 @@ -import { ApiSpec, HttpRoute, RequestType } from '@api-ts/io-ts-http'; +import { + ApiSpec, + HttpRoute, + Method as HttpMethod, + RequestType, +} from '@api-ts/io-ts-http'; import express from 'express'; import * as t from 'io-ts'; -export type Methods = 'get' | 'post' | 'put' | 'delete'; +export type Methods = Lowercase; export type RouteAt< Spec extends ApiSpec,