createTimeSource: fix type error
This commit is contained in:
parent
85ac9a236b
commit
c25ca17043
1 changed files with 1 additions and 1 deletions
|
@ -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(() =>
|
||||
|
|
Loading…
Reference in a new issue