BugDomain: lib.d.tsHelp Wanted
倉庫指標
- 星標
- (108,860 顆星)
- PR 合併指標
- (平均合併 6天 17小時) (30 天內合併 9 個 PR)
描述
Bug Report
As the title says, the URL interface (#3753) should be part of the Window object: window.URL.
Please look at https://developer.mozilla.org/fr/docs/Web/API/URL .
🔎 Search Terms
window url, url, new url, createObjectURL, revokeObjectURL
🕗 Version & Regression Information
I'm using TypeScript 4.2.4.
🙁 Actual behavior
window.URL is not defined.
🙂 Expected behavior
window.URL should refer to the URL interface you added on the issue #3753:
URL: {
prototype: URL;
new(url: string, base?: string | URL): URL;
createObjectURL(object: any): string;
revokeObjectURL(url: string): void;
};