Skip to content

Commit c245360

Browse files
committed
Remove unused code
1 parent 0f39391 commit c245360

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

pkgs/typed-api-spec/src/express/zod.test.ts

-14
Original file line numberDiff line numberDiff line change
@@ -288,20 +288,6 @@ describe("typed", () => {
288288
r.get("/users", (req, res) => {
289289
res.json([{ id: "1", name: "alice" }]);
290290
});
291-
// type A = ToHandlers<typeof pathMap>["/users"]["get"];
292-
// const a: A = (req, res) => {
293-
// res.json([{ id: "1", name: "alice" }]);
294-
// };
295-
// type A = ToHandler<typeof pathMap, "/users", "get">;
296-
// type B = ToApiEndpoints<
297-
// typeof pathMap
298-
// >["/users"]["get"]["responses"][200]["body"];
299-
// type ERes = ExpressResponse<
300-
// ToApiEndpoints<typeof pathMap>["/users"]["get"]["responses"],
301-
// 200
302-
// >;
303-
// const eres = {} as ERes;
304-
// eres.json([{ id: "1", name: "alice" }]);
305291
it("ok", async () => {
306292
const app = newApp();
307293
const wApp = typed(pathMap, app);

0 commit comments

Comments
 (0)