Skip to content

Commit

Permalink
fix: 🚨 fix tsc errors
Browse files Browse the repository at this point in the history
  • Loading branch information
DerZade committed Oct 6, 2023
1 parent e158590 commit f5aa6d0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ui/controllers/FileItemController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export default class FileItemController {
* @param shown Whether to show or hide the menu
*/
private toggleMoreMenu (shown: boolean): void {
const ul = this.element.querySelector('.grad-paa-file-item__more > ul');
const ul = this.element.querySelector<HTMLElement>('.grad-paa-file-item__more > ul');
if (ul === null) throw new Error('Couldn\'t find list element');

if (shown) {
Expand Down Expand Up @@ -214,7 +214,7 @@ export default class FileItemController {
* @param callback Callback, which is executed on click
*/
private setMainAction (el: HTMLElement, tooltip?: string, callback?: () => void): void {
const container = this.element.querySelector('.grad-paa-file-item__main-action');
const container = this.element.querySelector<HTMLElement>('.grad-paa-file-item__main-action');
if (!container) return;

// clear container
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"resolveJsonModule": true,
"moduleResolution": "node",
"strictNullChecks": true,
"skipLibCheck": true,
"paths": {
"@/*": [
"./src/*"
Expand Down

0 comments on commit f5aa6d0

Please sign in to comment.