mirror of
https://github.com/pockethost/pockethost.git
synced 2025-03-30 15:08:30 +00:00
refactor: TimeManager typings
This commit is contained in:
parent
432b22d959
commit
703842c0cc
@ -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 = {}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user