docs: ignore absent window global variable in d.ts (#28456)

This commit is contained in:
Ryan Dahl 2025-03-12 06:10:15 -07:00 committed by GitHub
parent 5c8d894aa3
commit f3e9325a91
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -77,7 +77,12 @@ declare var Window: {
new (): never;
};
/** @category Platform */
/**
* The window variable was removed in Deno 2. This declaration should be
* removed at some point, but we're leaving it in out of caution.
* @ignore
* @category Platform
*/
declare var window: Window & typeof globalThis;
/** @category Platform */
declare var self: Window & typeof globalThis;