type LoopRef = {
time: {
timestamp: number,
delta: number,
elapsed: number,
start: number,
},
version: {
frame: number,
rendered: number,
pending: boolean,
queued: boolean,
request: number | null,
},
loop: {
request?: (fiber?: LiveFiber<any>) => Time,
},
children?:
| string
| number
| LiveElement<ArrowFunction>[]
| ReactElementInterop
| ArrowFunction
| DeferredCall<ArrowFunction>
| LiveNode<any>[],
run?: () => void,
dispatch?: () => void,
}
packages / workbench / src / queue / loop.ts