File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { Construct } from 'constructs' ;
22import type { OpenAPIV3_1 } from 'openapi-types' ;
3- import { Api } from './api.js' ;
43import { Schema } from './schema.js' ;
4+ import { Api } from './api.js' ;
55
66type Target = Schema ; // | Parameter;
77
Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ export class Schema<
3434 } ;
3535 }
3636
37+ // eslint-disable-next-line class-methods-use-this
3738 public validate ( ) {
3839 return [ ] ;
3940 }
Original file line number Diff line number Diff line change 22export type ExtractRouteParams < T > = string extends T
33 ? Record < string , string >
44 : T extends `${infer _Start } {${infer Param } }/${infer Rest } `
5- ? { [ k in Param | keyof ExtractRouteParams < Rest > ] : string }
6- : T extends `${infer _Start } {${infer Param } }`
7- ? { [ k in Param ] : string }
8- : Record < string , never > ;
5+ ? { [ k in Param | keyof ExtractRouteParams < Rest > ] : string }
6+ : T extends `${infer _Start } {${infer Param } }`
7+ ? { [ k in Param ] : string }
8+ : Record < string , never > ;
You can’t perform that action at this time.
0 commit comments