Skip to content

Commit

Permalink
code
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurfiorette committed Sep 7, 2024
1 parent b92a384 commit f5ebdda
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/NodeParser/BooleanTypeNodeParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ export class BooleanTypeNodeParser implements SubNodeParser {
return node.kind === ts.SyntaxKind.BooleanKeyword;
}
public createType(node: ts.KeywordTypeNode, context: Context): BaseType {
let a = undefined;

Check failure on line 12 in src/NodeParser/BooleanTypeNodeParser.ts

View workflow job for this annotation

GitHub Actions / Test (ubuntu-latest)

'a' is never reassigned. Use 'const' instead

Check failure on line 12 in src/NodeParser/BooleanTypeNodeParser.ts

View workflow job for this annotation

GitHub Actions / Test (windows-latest)

'a' is never reassigned. Use 'const' instead
a.toString();

Check warning on line 13 in src/NodeParser/BooleanTypeNodeParser.ts

View workflow job for this annotation

GitHub Actions / Test (ubuntu-latest)

Unsafe call of an `error` type typed value

Check warning on line 13 in src/NodeParser/BooleanTypeNodeParser.ts

View workflow job for this annotation

GitHub Actions / Test (windows-latest)

Unsafe call of an `error` type typed value
return new BooleanType();
}
}
2 changes: 1 addition & 1 deletion src/SchemaGenerator.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import ts from "typescript";
import type { Config } from "./Config.js";
import { FailedTypeCreation, MultipleDefinitionsError, RootlessError, UnhandledError } from "./Error/Errors.js";
import { MultipleDefinitionsError, RootlessError, UnhandledError } from "./Error/Errors.js";
import { Context, type NodeParser } from "./NodeParser.js";
import type { Definition } from "./Schema/Definition.js";
import type { Schema } from "./Schema/Schema.js";
Expand Down

0 comments on commit f5ebdda

Please sign in to comment.