Skip to content

Commit

Permalink
feat: add worker related doms (#1147)
Browse files Browse the repository at this point in the history
* feat: add worker related doms

* add WorkerGlobalScopes

* fix: remove windowProxy

* Update jscomp/others/dom.ml

---------

Co-authored-by: Antonio Nuno Monteiro <[email protected]>
  • Loading branch information
tonyfettes and anmonteiro authored Aug 11, 2024
1 parent dd13b62 commit 76faea7
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions jscomp/others/dom.ml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,20 @@ type cssStyleSheet
(* events (early) *)
type 'a eventTarget_like
type eventTarget = _baseClass eventTarget_like
type _messagePort
type messagePort = _messagePort eventTarget_like
type _serviceWorker
type serviceWorker = _serviceWorker eventTarget_like
type _worker
type worker = _worker eventTarget_like
type 'a _workerGlobalScope
type workerGlobalScope = _baseClass 'a _workerGlobalScope eventTarget_like
type _dedicatedWorkerGlobalScope
type dedicatedWorkerGlobalScope = _dedicatedWorkerGlobalScope 'a _workerGlobalScope eventTarget_like
type _serviceWorkerGlobalScope
type serviceWorkerGlobalScope = _serviceWorkerGlobalScope 'a _workerGlobalScope eventTarget_like
type _sharedWorkerGlobalScope
type sharedWorkerGlobalScope = _sharedWorkerGlobalScope 'a _workerGlobalScope eventTarget_like

(* nodes *)
type 'a _node
Expand Down Expand Up @@ -236,6 +250,8 @@ type _inputEvent
type inputEvent = _inputEvent uiEvent_like
type _keyboardEvent
type keyboardEvent = _keyboardEvent uiEvent_like
type _messageEvent
type messageEvent = _messageEvent event_like
type 'a _mouseEvent
type 'a mouseEvent_like = 'a _mouseEvent uiEvent_like
type mouseEvent = _baseClass mouseEvent_like
Expand Down Expand Up @@ -291,5 +307,6 @@ type svgPoint

(* special *)
type eventPointerId
type messageChannel

module Storage = Dom_storage

0 comments on commit 76faea7

Please sign in to comment.