createTimeSource: fix type error

This commit is contained in:
thislight 2024-07-22 22:04:56 +08:00
parent ab99cf465b
commit cbed46ae77

View file

@ -13,7 +13,7 @@ const TimeSourceContext = createContext<Accessor<Date>>();
export const TimeSourceProvider = TimeSourceContext.Provider;
export function createTimeSource() {
let id: number | undefined;
let id: ReturnType<typeof setTimeout> | undefined;
const [get, set] = createSignal(new Date());
createRenderEffect(() =>