Skip to content

Commit

Permalink
fixup! chore: resolve leaking global type issues exposed by using ts …
Browse files Browse the repository at this point in the history
…path aliases
  • Loading branch information
Hotell committed Nov 25, 2022
1 parent 556d2cb commit d5b6a44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/style-utilities/src/utilities/icons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ export function setIconOptions(options: Partial<IIconOptions>): void {
}

let _missingIcons: string[] = [];
let _missingIconsTimer: number | undefined = undefined;
let _missingIconsTimer: ReturnType<typeof setTimeout> | undefined = undefined;

function _warnDuplicateIcon(iconName: string): void {
const options = _iconSettings.__options;
Expand All @@ -229,7 +229,7 @@ function _warnDuplicateIcon(iconName: string): void {
if (!options.disableWarnings) {
_missingIcons.push(iconName);
if (_missingIconsTimer === undefined) {
_missingIconsTimer = window.setTimeout(() => {
_missingIconsTimer = setTimeout(() => {
warn(
`Some icons were re-registered. Applications should only call registerIcons for any given ` +
`icon once. Redefining what an icon is may have unintended consequences. Duplicates ` +
Expand Down

0 comments on commit d5b6a44

Please sign in to comment.