summaryrefslogtreecommitdiff
path: root/cli/dts/lib.deno.shared_globals.d.ts
diff options
context:
space:
mode:
authorKitson Kelly <me@kitsonkelly.com>2021-06-15 11:16:06 +1000
committerGitHub <noreply@github.com>2021-06-15 11:16:06 +1000
commit1eac527adb8263acd6d6cc1147e53caa901d938d (patch)
treebbfce7b7aa229eaab652ec0bcc5f29d7cb968536 /cli/dts/lib.deno.shared_globals.d.ts
parent0acd0602bb087c0d4a938ae09ff42c096e5fb4f2 (diff)
fix(cli): improve worker types (#10965)
Diffstat (limited to 'cli/dts/lib.deno.shared_globals.d.ts')
-rw-r--r--cli/dts/lib.deno.shared_globals.d.ts25
1 files changed, 0 insertions, 25 deletions
diff --git a/cli/dts/lib.deno.shared_globals.d.ts b/cli/dts/lib.deno.shared_globals.d.ts
index a59a7af36..9537f8cd8 100644
--- a/cli/dts/lib.deno.shared_globals.d.ts
+++ b/cli/dts/lib.deno.shared_globals.d.ts
@@ -324,19 +324,6 @@ interface VoidFunction {
*/
declare function queueMicrotask(func: VoidFunction): void;
-/** Registers an event listener in the global scope, which will be called
- * synchronously whenever the event `type` is dispatched.
- *
- * addEventListener('unload', () => { console.log('All finished!'); });
- * ...
- * dispatchEvent(new Event('unload'));
- */
-declare function addEventListener(
- type: string,
- callback: EventListenerOrEventListenerObject | null,
- options?: boolean | AddEventListenerOptions | undefined,
-): void;
-
/** Dispatches an event in the global scope, synchronously invoking any
* registered event listeners for this event in the appropriate order. Returns
* false if event is cancelable and at least one of the event handlers which
@@ -346,18 +333,6 @@ declare function addEventListener(
*/
declare function dispatchEvent(event: Event): boolean;
-/** Remove a previously registered event listener from the global scope
- *
- * const lstnr = () => { console.log('hello'); };
- * addEventListener('load', lstnr);
- * removeEventListener('load', lstnr);
- */
-declare function removeEventListener(
- type: string,
- callback: EventListenerOrEventListenerObject | null,
- options?: boolean | EventListenerOptions | undefined,
-): void;
-
interface DOMStringList {
/** Returns the number of strings in strings. */
readonly length: number;