| 16 | } |
| 17 | |
| 18 | interface Scheduler { |
| 19 | readonly postTask?: ( |
| 20 | callback: () => void, |
| 21 | options?: { |
| 22 | priority?: 'user-blocking' | 'user-visible' | 'background'; |
| 23 | signal?: AbortSignal; |
| 24 | delay?: number; |
| 25 | } |
| 26 | ) => Promise<unknown>; |
| 27 | } |
| 28 | |
| 29 | /* |
| 30 | * To check for outside `mousedown` events, we listen to all `mousedown` events at their birth, |
nothing calls this directly
no outgoing calls
no test coverage detected