diff options
| -rw-r--r-- | frontend/src/components/DeckyToaster.tsx | 2 | ||||
| -rw-r--r-- | frontend/src/toaster.tsx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/frontend/src/components/DeckyToaster.tsx b/frontend/src/components/DeckyToaster.tsx index 7a51943b..056f1dd7 100644 --- a/frontend/src/components/DeckyToaster.tsx +++ b/frontend/src/components/DeckyToaster.tsx @@ -28,7 +28,7 @@ const DeckyToaster: FC<DeckyToasterProps> = () => { } useEffect(() => { // not actually node but TS is shit - let interval: NodeJS.Timeout | number | null; + let interval: number | null; if (renderedToast) { interval = setTimeout( () => { diff --git a/frontend/src/toaster.tsx b/frontend/src/toaster.tsx index 7b93c91c..6f7c5f6e 100644 --- a/frontend/src/toaster.tsx +++ b/frontend/src/toaster.tsx @@ -125,7 +125,7 @@ class Toaster extends Logger { } }; const oRender = Object.getPrototypeOf(this.rNode.stateNode).render; - let int: NodeJS.Timeout | undefined; + let int: number | undefined; this.rNode.stateNode.render = (...args: any[]) => { const ret = oRender.call(this.rNode.stateNode, ...args); if (ret && !this?.node?.return?.return) { |
