Skip to content

Commit

Permalink
chore: tsconfig with strictNullChecks and strictPropertyInitialization
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgianStan committed Jun 9, 2023
1 parent af51b35 commit a819e74
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class Menu {
#showMenu() {
const options = this.#optionsContent.map((fragment) => {
const option = document.createElement('span');
option.setAttribute(TOKENS.get('optionAttr'), '');
option.setAttribute(TOKENS.get('optionAttr') as string, '');
option.append(fragment);
return option;
});
Expand Down
2 changes: 2 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
"declaration": true,
"declarationMap": true,
"allowSyntheticDefaultImports":true,
"strictNullChecks":true,
"strictPropertyInitialization":true,
"outDir": "./dist"
},
"include": ["src/**/*"]
Expand Down

0 comments on commit a819e74

Please sign in to comment.