type MouseContextProps = {
mouse: MouseState,
captureId: number | null,
targetId: number,
targetIndex: number,
stopPropagation: () => void,
hasLock: boolean,
beginLock: () => void,
endLock: () => void,
beginCapture: (id: number) => void,
endCapture: () => void,
useMouse: (id?: number) => MouseEventState,
}
packages / workbench / src / providers / event-provider.ts