createTimeSource: fix type error

This commit is contained in:
thislight 2024-07-22 22:04:56 +08:00
parent 85ac9a236b
commit c25ca17043
No known key found for this signature in database
GPG key ID: A50F9451AC56A63E

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(() =>