Skip to content

Commit d90d789

Browse files
committed
refactor(): lint issues
1 parent 4f9a86b commit d90d789

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

src/generator.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ export async function generateAPIClient(
2727
options?: typeof global.GLOBAL_OPTIONS,
2828
): Promise<string[]> {
2929
if (options) {
30+
// tslint:disable-next-line:no-object-mutation
3031
global.GLOBAL_OPTIONS = options;
3132
}
3233

src/main.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ if (typeof argv.source === 'undefined' && argv.source !== true) {
4141
process.exit(1);
4242
}
4343

44+
// tslint:disable-next-line:no-object-mutation
4445
global.GLOBAL_OPTIONS = {
4546
outputPath: argv.output || './output',
4647
sourceFile: argv.source,

src/parser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ function defineEnumOrInterface(
294294
)
295295
: defineInterface(
296296
'schema' in definition
297-
? definition.schema!
297+
? definition.schema
298298
: (definition as OpenAPIV2.SchemaObject),
299299
key,
300300
);

0 commit comments

Comments
 (0)