forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[trusted-types] Properly augment global to prevent conflicts with lib… (
DefinitelyTyped#64360) * [trusted-types] Properly augment global to prevent conflicts with lib.dom.d.ts et.all This is the proper patern to augment global interfaces that are defined by the runtime. The previous approach would break once `lib.dom.d.ts` declares these interfaces. The previous approach also made it impossible for other libraries to use these types. For example, DefinitelyTyped#60691 had to be reverted. With proper module augmentation we can land DefinitelyTyped#60691 again. * $ExpectError -> @ts-expect-error
- Loading branch information
1 parent
27b963c
commit 098400c
Showing
2 changed files
with
17 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters