From 7e2548de69de4388ee8079cdaa2741a8a90d7a7f Mon Sep 17 00:00:00 2001 From: Patrick McLaughlin Date: Thu, 11 Aug 2022 10:15:09 -0400 Subject: [PATCH] fix: use methods from io-ts-http --- packages/typed-express-router/src/types.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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,