refactor: TimeManager typings

This commit is contained in:
Ben Allfree 2022-11-20 05:13:00 -08:00
parent 432b22d959
commit 703842c0cc

View File

@ -3,9 +3,11 @@ import { forEach } from '@s-libs/micro-dash'
export type UnixTimestampMs = number
export type TimerCanceler = () => void
export type Config = {}
export type TimeManagerConfig = {}
export const createTimerManager = (config: Config) => {
export type TimeManager = ReturnType<typeof createTimerManager>
export const createTimerManager = (config: TimeManagerConfig) => {
let i = 0
const cleanups: any = {}