Skip to content

Commit 9407389

Browse files
committed
chore: lint
1 parent 625a4a5 commit 9407389

3 files changed

Lines changed: 6 additions & 5 deletions

File tree

lib/reference.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Construct } from 'constructs';
22
import type { OpenAPIV3_1 } from 'openapi-types';
3-
import { Api } from './api.js';
43
import { Schema } from './schema.js';
4+
import { Api } from './api.js';
55

66
type Target = Schema; // | Parameter;
77

lib/schema.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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
}

lib/types.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
export 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>;

0 commit comments

Comments
 (0)