1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-28 16:20:57 -05:00

docs(event): fixlets to code comments (#20944)

This commit is contained in:
Jérôme Benoit 2023-10-23 14:34:37 +02:00 committed by GitHub
parent 9f9c3d9048
commit 9df36b33c6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 6 deletions

View file

@ -8209,7 +8209,7 @@ interface EventTarget {
*/ */
addEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: AddEventListenerOptions | boolean): void; addEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: AddEventListenerOptions | boolean): void;
/** /**
* Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise. * Dispatches a synthetic event to event target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.
* *
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent) * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent)
*/ */
@ -27428,7 +27428,7 @@ declare function scrollTo(x: number, y: number): void;
declare function stop(): void; declare function stop(): void;
declare function toString(): string; declare function toString(): string;
/** /**
* Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise. * Dispatches a synthetic event to event target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.
* *
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent) * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent)
*/ */

View file

@ -2628,7 +2628,7 @@ interface EventTarget {
*/ */
addEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: AddEventListenerOptions | boolean): void; addEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: AddEventListenerOptions | boolean): void;
/** /**
* Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise. * Dispatches a synthetic event to target event and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.
* *
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent) * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent)
*/ */
@ -9098,7 +9098,7 @@ declare function close(): void;
declare function postMessage(message: any, transfer: Transferable[]): void; declare function postMessage(message: any, transfer: Transferable[]): void;
declare function postMessage(message: any, options?: StructuredSerializeOptions): void; declare function postMessage(message: any, options?: StructuredSerializeOptions): void;
/** /**
* Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise. * Dispatches a synthetic event to event target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.
* *
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent) * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent)
*/ */
@ -9138,7 +9138,7 @@ declare var self: WorkerGlobalScope & typeof globalThis;
*/ */
declare function importScripts(...urls: (string | URL)[]): void; declare function importScripts(...urls: (string | URL)[]): void;
/** /**
* Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise. * Dispatches a synthetic event to event target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.
* *
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent) * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent)
*/ */

View file

@ -184,7 +184,7 @@ declare interface EventTarget {
listener: EventListenerOrEventListenerObject | null, listener: EventListenerOrEventListenerObject | null,
options?: boolean | AddEventListenerOptions, options?: boolean | AddEventListenerOptions,
): void; ): void;
/** Dispatches a synthetic event event to target and returns true if either /** Dispatches a synthetic event to event target and returns true if either
* event's cancelable attribute value is false or its preventDefault() method * event's cancelable attribute value is false or its preventDefault() method
* was not invoked, and false otherwise. */ * was not invoked, and false otherwise. */
dispatchEvent(event: Event): boolean; dispatchEvent(event: Event): boolean;