File tree Expand file tree Collapse file tree 1 file changed +0
-14
lines changed
pkgs/typed-api-spec/src/express Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments