From 5d1284ec01f725fbf98b17a6bf0c78c609f187ab Mon Sep 17 00:00:00 2001 From: yonatankra Date: Thu, 5 Nov 2020 05:32:40 +0200 Subject: [PATCH] Change type --- packages/list/mwc-list-base.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/list/mwc-list-base.ts b/packages/list/mwc-list-base.ts index d7e43ac733..1c4cc56597 100644 --- a/packages/list/mwc-list-base.ts +++ b/packages/list/mwc-list-base.ts @@ -31,13 +31,13 @@ export {ActionDetail, createSetFromIndex, isEventMulti, isIndexSet, MWCListIndex function debounceLayout( callback: (this: T, updateItems: boolean) => void, waitInMS = 50) { - let timeoutId: NodeJS.Timeout; + let timeoutId: number; return function(this: T, updateItems = true) { clearTimeout(timeoutId); // eslint-disable-next-line @typescript-eslint/no-this-alias const context = this; timeoutId = - setTimeout(() => callback.apply(context, [updateItems]), waitInMS); + setTimeout(() => callback.apply(context, [updateItems]), waitInMS) as unknown as number; }; }