File tree 1 file changed +0
-14
lines changed
pkgs/typed-api-spec/src/express
1 file changed +0
-14
lines changed Original file line number Diff line number Diff line change @@ -288,20 +288,6 @@ describe("typed", () => {
288
288
r . get ( "/users" , ( req , res ) => {
289
289
res . json ( [ { id : "1" , name : "alice" } ] ) ;
290
290
} ) ;
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" }]);
305
291
it ( "ok" , async ( ) => {
306
292
const app = newApp ( ) ;
307
293
const wApp = typed ( pathMap , app ) ;
You can’t perform that action at this time.
0 commit comments