createTimeSource: fix type error
This commit is contained in:
parent
ab99cf465b
commit
cbed46ae77
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ const TimeSourceContext = createContext<Accessor<Date>>();
|
||||||
export const TimeSourceProvider = TimeSourceContext.Provider;
|
export const TimeSourceProvider = TimeSourceContext.Provider;
|
||||||
|
|
||||||
export function createTimeSource() {
|
export function createTimeSource() {
|
||||||
let id: number | undefined;
|
let id: ReturnType<typeof setTimeout> | undefined;
|
||||||
const [get, set] = createSignal(new Date());
|
const [get, set] = createSignal(new Date());
|
||||||
|
|
||||||
createRenderEffect(() =>
|
createRenderEffect(() =>
|
||||||
|
|
Loading…
Reference in a new issue