Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions baselines/dom.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31227,7 +31227,7 @@ interface Request extends Body {

declare var Request: {
prototype: Request;
new(input: RequestInfo | URL, init?: RequestInit): Request;
new(input: RequestInfo | Location | URL, init?: RequestInit): Request;
};

/**
Expand Down Expand Up @@ -38143,13 +38143,13 @@ interface URL {

declare var URL: {
prototype: URL;
new(url: string | URL, base?: string | URL): URL;
new(url: string | Location | URL, base?: string | URL | Location): URL;
/**
* The **`URL.canParse()`** static method of the URL interface returns a boolean indicating whether or not an absolute URL, or a relative URL combined with a base URL, are parsable and valid.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/canParse_static)
*/
canParse(url: string | URL, base?: string | URL): boolean;
canParse(url: string | Location | URL, base?: string | URL | Location): boolean;
/**
* The **`createObjectURL()`** static method of the URL interface creates a string containing a blob URL pointing to the object given in the parameter.
*
Expand All @@ -38161,7 +38161,7 @@ declare var URL: {
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/parse_static)
*/
parse(url: string | URL, base?: string | URL): URL | null;
parse(url: string | Location | URL, base?: string | URL | Location): URL | null;
/**
* The **`revokeObjectURL()`** static method of the URL interface releases an existing object URL which was previously created by calling URL.createObjectURL().
*
Expand Down Expand Up @@ -42559,7 +42559,7 @@ interface WindowOrWorkerGlobalScope {
createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/fetch) */
fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
fetch(input: RequestInfo | Location | URL, init?: RequestInit): Promise<Response>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/queueMicrotask) */
queueMicrotask(callback: VoidFunction): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/reportError) */
Expand Down Expand Up @@ -42865,8 +42865,8 @@ interface XMLHttpRequest extends XMLHttpRequestEventTarget {
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/open)
*/
open(method: string, url: string | URL): void;
open(method: string, url: string | URL, async: boolean, username?: string | null, password?: string | null): void;
open(method: string, url: string | Location | URL): void;
open(method: string, url: string | Location | URL, async: boolean, username?: string | null, password?: string | null): void;
/**
* The XMLHttpRequest method **`overrideMimeType()`** specifies a MIME type other than the one provided by the server to be used instead when interpreting the data being transferred in a request.
*
Expand Down Expand Up @@ -44997,7 +44997,7 @@ declare function clearTimeout(id: number | undefined): void;
declare function createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
declare function createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/fetch) */
declare function fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
declare function fetch(input: RequestInfo | Location | URL, init?: RequestInit): Promise<Response>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/queueMicrotask) */
declare function queueMicrotask(callback: VoidFunction): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/reportError) */
Expand Down
12 changes: 6 additions & 6 deletions baselines/serviceworker.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8465,7 +8465,7 @@ interface Request extends Body {

declare var Request: {
prototype: Request;
new(input: RequestInfo | URL, init?: RequestInit): Request;
new(input: RequestInfo | WorkerLocation | URL, init?: RequestInit): Request;
};

/**
Expand Down Expand Up @@ -9517,19 +9517,19 @@ interface URL {

declare var URL: {
prototype: URL;
new(url: string | URL, base?: string | URL): URL;
new(url: string | WorkerLocation | URL, base?: string | URL | WorkerLocation): URL;
/**
* The **`URL.canParse()`** static method of the URL interface returns a boolean indicating whether or not an absolute URL, or a relative URL combined with a base URL, are parsable and valid.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/canParse_static)
*/
canParse(url: string | URL, base?: string | URL): boolean;
canParse(url: string | WorkerLocation | URL, base?: string | URL | WorkerLocation): boolean;
/**
* The **`URL.parse()`** static method of the URL interface returns a newly created URL object representing the URL defined by the parameters.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/parse_static)
*/
parse(url: string | URL, base?: string | URL): URL | null;
parse(url: string | WorkerLocation | URL, base?: string | URL | WorkerLocation): URL | null;
};

/**
Expand Down Expand Up @@ -12577,7 +12577,7 @@ interface WindowOrWorkerGlobalScope {
createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/fetch) */
fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
fetch(input: RequestInfo | WorkerLocation | URL, init?: RequestInit): Promise<Response>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/queueMicrotask) */
queueMicrotask(callback: VoidFunction): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/reportError) */
Expand Down Expand Up @@ -13529,7 +13529,7 @@ declare function clearTimeout(id: number | undefined): void;
declare function createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
declare function createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/fetch) */
declare function fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
declare function fetch(input: RequestInfo | WorkerLocation | URL, init?: RequestInit): Promise<Response>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/queueMicrotask) */
declare function queueMicrotask(callback: VoidFunction): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/reportError) */
Expand Down
16 changes: 8 additions & 8 deletions baselines/sharedworker.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8048,7 +8048,7 @@ interface Request extends Body {

declare var Request: {
prototype: Request;
new(input: RequestInfo | URL, init?: RequestInit): Request;
new(input: RequestInfo | WorkerLocation | URL, init?: RequestInit): Request;
};

/**
Expand Down Expand Up @@ -9048,13 +9048,13 @@ interface URL {

declare var URL: {
prototype: URL;
new(url: string | URL, base?: string | URL): URL;
new(url: string | WorkerLocation | URL, base?: string | URL | WorkerLocation): URL;
/**
* The **`URL.canParse()`** static method of the URL interface returns a boolean indicating whether or not an absolute URL, or a relative URL combined with a base URL, are parsable and valid.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/canParse_static)
*/
canParse(url: string | URL, base?: string | URL): boolean;
canParse(url: string | WorkerLocation | URL, base?: string | URL | WorkerLocation): boolean;
/**
* The **`createObjectURL()`** static method of the URL interface creates a string containing a blob URL pointing to the object given in the parameter.
*
Expand All @@ -9066,7 +9066,7 @@ declare var URL: {
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/parse_static)
*/
parse(url: string | URL, base?: string | URL): URL | null;
parse(url: string | WorkerLocation | URL, base?: string | URL | WorkerLocation): URL | null;
/**
* The **`revokeObjectURL()`** static method of the URL interface releases an existing object URL which was previously created by calling URL.createObjectURL().
*
Expand Down Expand Up @@ -12083,7 +12083,7 @@ interface WindowOrWorkerGlobalScope {
createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/fetch) */
fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
fetch(input: RequestInfo | WorkerLocation | URL, init?: RequestInit): Promise<Response>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/queueMicrotask) */
queueMicrotask(callback: VoidFunction): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/reportError) */
Expand Down Expand Up @@ -12503,8 +12503,8 @@ interface XMLHttpRequest extends XMLHttpRequestEventTarget {
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/open)
*/
open(method: string, url: string | URL): void;
open(method: string, url: string | URL, async: boolean, username?: string | null, password?: string | null): void;
open(method: string, url: string | WorkerLocation | URL): void;
open(method: string, url: string | WorkerLocation | URL, async: boolean, username?: string | null, password?: string | null): void;
/**
* The XMLHttpRequest method **`overrideMimeType()`** specifies a MIME type other than the one provided by the server to be used instead when interpreting the data being transferred in a request.
*
Expand Down Expand Up @@ -13219,7 +13219,7 @@ declare function clearTimeout(id: number | undefined): void;
declare function createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
declare function createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/fetch) */
declare function fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
declare function fetch(input: RequestInfo | WorkerLocation | URL, init?: RequestInit): Promise<Response>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/queueMicrotask) */
declare function queueMicrotask(callback: VoidFunction): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/reportError) */
Expand Down
16 changes: 8 additions & 8 deletions baselines/ts5.5/dom.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31203,7 +31203,7 @@ interface Request extends Body {

declare var Request: {
prototype: Request;
new(input: RequestInfo | URL, init?: RequestInit): Request;
new(input: RequestInfo | Location | URL, init?: RequestInit): Request;
};

/**
Expand Down Expand Up @@ -38117,13 +38117,13 @@ interface URL {

declare var URL: {
prototype: URL;
new(url: string | URL, base?: string | URL): URL;
new(url: string | Location | URL, base?: string | URL | Location): URL;
/**
* The **`URL.canParse()`** static method of the URL interface returns a boolean indicating whether or not an absolute URL, or a relative URL combined with a base URL, are parsable and valid.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/canParse_static)
*/
canParse(url: string | URL, base?: string | URL): boolean;
canParse(url: string | Location | URL, base?: string | URL | Location): boolean;
/**
* The **`createObjectURL()`** static method of the URL interface creates a string containing a blob URL pointing to the object given in the parameter.
*
Expand All @@ -38135,7 +38135,7 @@ declare var URL: {
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/parse_static)
*/
parse(url: string | URL, base?: string | URL): URL | null;
parse(url: string | Location | URL, base?: string | URL | Location): URL | null;
/**
* The **`revokeObjectURL()`** static method of the URL interface releases an existing object URL which was previously created by calling URL.createObjectURL().
*
Expand Down Expand Up @@ -42533,7 +42533,7 @@ interface WindowOrWorkerGlobalScope {
createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/fetch) */
fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
fetch(input: RequestInfo | Location | URL, init?: RequestInit): Promise<Response>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/queueMicrotask) */
queueMicrotask(callback: VoidFunction): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/reportError) */
Expand Down Expand Up @@ -42839,8 +42839,8 @@ interface XMLHttpRequest extends XMLHttpRequestEventTarget {
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/open)
*/
open(method: string, url: string | URL): void;
open(method: string, url: string | URL, async: boolean, username?: string | null, password?: string | null): void;
open(method: string, url: string | Location | URL): void;
open(method: string, url: string | Location | URL, async: boolean, username?: string | null, password?: string | null): void;
/**
* The XMLHttpRequest method **`overrideMimeType()`** specifies a MIME type other than the one provided by the server to be used instead when interpreting the data being transferred in a request.
*
Expand Down Expand Up @@ -44971,7 +44971,7 @@ declare function clearTimeout(id: number | undefined): void;
declare function createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
declare function createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/fetch) */
declare function fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
declare function fetch(input: RequestInfo | Location | URL, init?: RequestInit): Promise<Response>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/queueMicrotask) */
declare function queueMicrotask(callback: VoidFunction): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/reportError) */
Expand Down
12 changes: 6 additions & 6 deletions baselines/ts5.5/serviceworker.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8462,7 +8462,7 @@ interface Request extends Body {

declare var Request: {
prototype: Request;
new(input: RequestInfo | URL, init?: RequestInit): Request;
new(input: RequestInfo | WorkerLocation | URL, init?: RequestInit): Request;
};

/**
Expand Down Expand Up @@ -9514,19 +9514,19 @@ interface URL {

declare var URL: {
prototype: URL;
new(url: string | URL, base?: string | URL): URL;
new(url: string | WorkerLocation | URL, base?: string | URL | WorkerLocation): URL;
/**
* The **`URL.canParse()`** static method of the URL interface returns a boolean indicating whether or not an absolute URL, or a relative URL combined with a base URL, are parsable and valid.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/canParse_static)
*/
canParse(url: string | URL, base?: string | URL): boolean;
canParse(url: string | WorkerLocation | URL, base?: string | URL | WorkerLocation): boolean;
/**
* The **`URL.parse()`** static method of the URL interface returns a newly created URL object representing the URL defined by the parameters.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/parse_static)
*/
parse(url: string | URL, base?: string | URL): URL | null;
parse(url: string | WorkerLocation | URL, base?: string | URL | WorkerLocation): URL | null;
};

/**
Expand Down Expand Up @@ -12574,7 +12574,7 @@ interface WindowOrWorkerGlobalScope {
createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/fetch) */
fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
fetch(input: RequestInfo | WorkerLocation | URL, init?: RequestInit): Promise<Response>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/queueMicrotask) */
queueMicrotask(callback: VoidFunction): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/reportError) */
Expand Down Expand Up @@ -13526,7 +13526,7 @@ declare function clearTimeout(id: number | undefined): void;
declare function createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
declare function createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/fetch) */
declare function fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
declare function fetch(input: RequestInfo | WorkerLocation | URL, init?: RequestInit): Promise<Response>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/queueMicrotask) */
declare function queueMicrotask(callback: VoidFunction): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/reportError) */
Expand Down
Loading
Loading