We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b9f0252 + 7e2548d commit 2d43885Copy full SHA for 2d43885
packages/typed-express-router/src/types.ts
@@ -1,8 +1,13 @@
1
-import { ApiSpec, HttpRoute, RequestType } from '@api-ts/io-ts-http';
+import {
2
+ ApiSpec,
3
+ HttpRoute,
4
+ Method as HttpMethod,
5
+ RequestType,
6
+} from '@api-ts/io-ts-http';
7
import express from 'express';
8
import * as t from 'io-ts';
9
-export type Methods = 'get' | 'post' | 'put' | 'delete';
10
+export type Methods = Lowercase<HttpMethod>;
11
12
export type RouteAt<
13
Spec extends ApiSpec,
0 commit comments