Skip to content

Commit

Permalink
Build: Migrate @storybook/addon-highlight to strict-ts
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperpeulen committed Apr 20, 2023
1 parent 5303b75 commit 51f981b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion code/addons/highlight/src/preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const resetHighlight = () => {
const id = HIGHLIGHT_STYLE_ID;
const sheetToBeRemoved = document.getElementById(id);
if (sheetToBeRemoved) {
sheetToBeRemoved.parentNode.removeChild(sheetToBeRemoved);
sheetToBeRemoved.parentNode?.removeChild(sheetToBeRemoved);
}
};

Expand Down
2 changes: 1 addition & 1 deletion code/addons/highlight/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"compilerOptions": {
"rootDir": "./src",
"types": ["webpack-env"],
"strict": false
"strict": true
},
"include": ["src/**/*"]
}

0 comments on commit 51f981b

Please sign in to comment.