remove second TMethod

Signed-off-by: aramissennyeydd <aramis.sennyey@doordash.com>
Signed-off-by: Aramis Sennyey <159921952+aramissennyeydd@users.noreply.github.com>
Signed-off-by: aramissennyeydd <aramis.sennyey@doordash.com>
This commit is contained in:
aramissennyeydd
2024-03-03 11:13:41 -05:00
parent 629b70dc83
commit 1eca5d5112
@@ -293,10 +293,7 @@ export interface DocRequestMatcher<
T,
Method extends HttpMethods,
> {
<
TPath extends MethodAwareDocPath<Doc, DocPath<Doc>, Method>,
TMethod extends DocPathMethod<Doc, TPath>,
>(
<TPath extends MethodAwareDocPath<Doc, DocPath<Doc>, Method>>(
path: PathTemplate<TPath>,
...handlers: Array<DocRequestHandler<Doc, TPath, Method>>
): T;
@@ -338,6 +335,6 @@ type why = DocPathMethod<
type test5 = MethodAwareDocPath<InputOutput, '/entities', 'GET'>;
const router: TypedRouter = Router() as TypedRouter;
router.post('/entities/by-refs', (req, res) => {
router.post('/entities', (req, res) => {
res.json([{}]);
});