Skip to content

Commit

Permalink
Fix export let which was broken by eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
krassowski committed Apr 17, 2024
1 parent 27b7c7d commit 2be3848
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,5 +182,8 @@ namespace Private {
/**
* The incrementing id used for launcher widgets.
*/
export const id = 0;
// There is a bug in `prefer-const` for exported let, see:
// - https://github.com/typescript-eslint/typescript-eslint/issues/4572
// - https://github.com/typescript-eslint/typescript-eslint/issues/4573
export let id = 0; // eslint-disable-line prefer-const
}

0 comments on commit 2be3848

Please sign in to comment.