From cbed46ae776afcca2fa9ad6676d45150c4749ef3 Mon Sep 17 00:00:00 2001 From: thislight Date: Mon, 22 Jul 2024 22:04:56 +0800 Subject: [PATCH] createTimeSource: fix type error --- src/platform/timesrc.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform/timesrc.ts b/src/platform/timesrc.ts index dbf51fb..d5d957a 100644 --- a/src/platform/timesrc.ts +++ b/src/platform/timesrc.ts @@ -13,7 +13,7 @@ const TimeSourceContext = createContext>(); export const TimeSourceProvider = TimeSourceContext.Provider; export function createTimeSource() { - let id: number | undefined; + let id: ReturnType | undefined; const [get, set] = createSignal(new Date()); createRenderEffect(() =>