Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

misc(docs): rectify typos and spelling mistakes #1632

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
5 changes: 5 additions & 0 deletions baselines/audioworklet.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ interface TextEncoderEncodeIntoResult {
}

interface Transformer<I = any, O = any> {
cancel?: TransformerCancelCallback;
flush?: TransformerFlushCallback<O>;
readableType?: undefined;
start?: TransformerStartCallback<O>;
Expand Down Expand Up @@ -1351,6 +1352,10 @@ interface QueuingStrategySize<T = any> {
(chunk: T): number;
}

interface TransformerCancelCallback {
(reason: any): void | PromiseLike<void>;
}

interface TransformerFlushCallback<O> {
(controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;
}
Expand Down
70 changes: 64 additions & 6 deletions baselines/dom.generated.d.ts

Large diffs are not rendered by default.

10 changes: 8 additions & 2 deletions baselines/serviceworker.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -542,6 +542,7 @@ interface RequestInit {
referrer?: string;
/** A referrer policy to set request's referrerPolicy. */
referrerPolicy?: ReferrerPolicy;
sharedStorageWritable?: boolean;
/** An AbortSignal to set request's signal. */
signal?: AbortSignal | null;
/** Can only be null. Used to disassociate request from any Window. */
Expand Down Expand Up @@ -644,6 +645,7 @@ interface TextEncoderEncodeIntoResult {
}

interface Transformer<I = any, O = any> {
cancel?: TransformerCancelCallback;
flush?: TransformerFlushCallback<O>;
readableType?: undefined;
start?: TransformerStartCallback<O>;
Expand Down Expand Up @@ -4426,7 +4428,7 @@ declare var PushMessageData: {
};

/**
* This Push API interface provides a subcription's URL endpoint and allows unsubscription from a push service.
* This Push API interface provides a subscription'sURL endpoint and allows unsubscription from a push service.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription)
Expand Down Expand Up @@ -7778,7 +7780,7 @@ interface WebSocket extends EventTarget {
*/
readonly url: string;
/**
* Closes the WebSocket connection, optionally using code as the the WebSocket connection close code and reason as the the WebSocket connection close reason.
* Closes the WebSocket connection, optionally using code as the WebSocket connection close code and reason as the WebSocket connection close reason.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/close)
*/
Expand Down Expand Up @@ -8363,6 +8365,10 @@ interface ReportingObserverCallback {
(reports: Report[], observer: ReportingObserver): void;
}

interface TransformerCancelCallback {
(reason: any): void | PromiseLike<void>;
}

interface TransformerFlushCallback<O> {
(controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;
}
Expand Down
10 changes: 8 additions & 2 deletions baselines/sharedworker.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,7 @@ interface RequestInit {
referrer?: string;
/** A referrer policy to set request's referrerPolicy. */
referrerPolicy?: ReferrerPolicy;
sharedStorageWritable?: boolean;
/** An AbortSignal to set request's signal. */
signal?: AbortSignal | null;
/** Can only be null. Used to disassociate request from any Window. */
Expand Down Expand Up @@ -610,6 +611,7 @@ interface TextEncoderEncodeIntoResult {
}

interface Transformer<I = any, O = any> {
cancel?: TransformerCancelCallback;
flush?: TransformerFlushCallback<O>;
readableType?: undefined;
start?: TransformerStartCallback<O>;
Expand Down Expand Up @@ -4260,7 +4262,7 @@ declare var PushManager: {
};

/**
* This Push API interface provides a subcription's URL endpoint and allows unsubscription from a push service.
* This Push API interface provides a subscription'sURL endpoint and allows unsubscription from a push service.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription)
Expand Down Expand Up @@ -7593,7 +7595,7 @@ interface WebSocket extends EventTarget {
*/
readonly url: string;
/**
* Closes the WebSocket connection, optionally using code as the the WebSocket connection close code and reason as the the WebSocket connection close reason.
* Closes the WebSocket connection, optionally using code as the WebSocket connection close code and reason as the WebSocket connection close reason.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/close)
*/
Expand Down Expand Up @@ -8383,6 +8385,10 @@ interface ReportingObserverCallback {
(reports: Report[], observer: ReportingObserver): void;
}

interface TransformerCancelCallback {
(reason: any): void | PromiseLike<void>;
}

interface TransformerFlushCallback<O> {
(controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;
}
Expand Down
Loading
Loading