mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 07:14:47 -05:00
docs: refer to globalThis
instead of window
in declaration files (#25286)
This commit is contained in:
parent
27d0897841
commit
d183533404
3 changed files with 6 additions and 6 deletions
6
cli/tsc/dts/lib.dom.d.ts
vendored
6
cli/tsc/dts/lib.dom.d.ts
vendored
|
@ -17550,7 +17550,7 @@ declare var PerformanceServerTiming: {
|
|||
};
|
||||
|
||||
/**
|
||||
* A legacy interface kept for backwards compatibility and contains properties that offer performance timing information for various events which occur during the loading and use of the current page. You get a PerformanceTiming object describing your page using the window.performance.timing property.
|
||||
* A legacy interface kept for backwards compatibility and contains properties that offer performance timing information for various events which occur during the loading and use of the current page. You get a PerformanceTiming object describing your page using the globalThis.performance.timing property.
|
||||
* @deprecated This interface is deprecated in the Navigation Timing Level 2 specification. Please use the PerformanceNavigationTiming interface instead.
|
||||
*
|
||||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming)
|
||||
|
@ -17833,7 +17833,7 @@ declare var Plugin: {
|
|||
};
|
||||
|
||||
/**
|
||||
* Used to store a list of Plugin objects describing the available plugins; it's returned by the window.navigator.plugins property. The PluginArray is not a JavaScript array, but has the length property and supports accessing individual items using bracket notation (plugins[2]), as well as via item(index) and namedItem("name") methods.
|
||||
* Used to store a list of Plugin objects describing the available plugins; it's returned by the globalThis.navigator.plugins property. The PluginArray is not a JavaScript array, but has the length property and supports accessing individual items using bracket notation (plugins[2]), as well as via item(index) and namedItem("name") methods.
|
||||
* @deprecated
|
||||
*
|
||||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PluginArray)
|
||||
|
@ -22155,7 +22155,7 @@ declare var SubmitEvent: {
|
|||
};
|
||||
|
||||
/**
|
||||
* This Web Crypto API interface provides a number of low-level cryptographic functions. It is accessed via the Crypto.subtle properties available in a window context (via Window.crypto).
|
||||
* This Web Crypto API interface provides a number of low-level cryptographic functions. It is accessed via the Crypto.subtle properties available in a window context (via globalThis.crypto).
|
||||
* Available only in secure contexts.
|
||||
*
|
||||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto)
|
||||
|
|
4
cli/tsc/dts/lib.webworker.d.ts
vendored
4
cli/tsc/dts/lib.webworker.d.ts
vendored
|
@ -5407,7 +5407,7 @@ declare var StylePropertyMapReadOnly: {
|
|||
};
|
||||
|
||||
/**
|
||||
* This Web Crypto API interface provides a number of low-level cryptographic functions. It is accessed via the Crypto.subtle properties available in a window context (via Window.crypto).
|
||||
* This Web Crypto API interface provides a number of low-level cryptographic functions. It is accessed via the Crypto.subtle properties available in a window context (via globalThis.crypto).
|
||||
* Available only in secure contexts.
|
||||
*
|
||||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto)
|
||||
|
@ -8641,7 +8641,7 @@ declare var WorkerLocation: {
|
|||
};
|
||||
|
||||
/**
|
||||
* A subset of the Navigator interface allowed to be accessed from a Worker. Such an object is initialized for each worker and is available via the WorkerGlobalScope.navigator property obtained by calling window.self.navigator.
|
||||
* A subset of the Navigator interface allowed to be accessed from a Worker. Such an object is initialized for each worker and is available via the WorkerGlobalScope.navigator property obtained by calling globalThis.self.navigator.
|
||||
*
|
||||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerNavigator)
|
||||
*/
|
||||
|
|
2
ext/crypto/lib.deno_crypto.d.ts
vendored
2
ext/crypto/lib.deno_crypto.d.ts
vendored
|
@ -231,7 +231,7 @@ declare var CryptoKeyPair: {
|
|||
|
||||
/** This Web Crypto API interface provides a number of low-level cryptographic
|
||||
* functions. It is accessed via the Crypto.subtle properties available in a
|
||||
* window context (via Window.crypto).
|
||||
* window context (via globalThis.crypto).
|
||||
*
|
||||
* @category Crypto
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue