mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-09 02:30:15 -06:00
Component commits: c9846f8b83 Restore HTMLDocument constructable value in DOM Don't touch anything else in the DOM. Co-authored-by: Nathan Shively-Sanders <nathansa@microsoft.com>
This commit is contained in:
parent
a417917f62
commit
d2a46a07b3
8
src/lib/dom.generated.d.ts
vendored
8
src/lib/dom.generated.d.ts
vendored
@ -6380,6 +6380,12 @@ interface HTMLDocument extends Document {
|
||||
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
||||
}
|
||||
|
||||
/** @deprecated */
|
||||
declare var HTMLDocument: {
|
||||
prototype: HTMLDocument;
|
||||
new(): HTMLDocument;
|
||||
};
|
||||
|
||||
interface HTMLElementEventMap extends ElementEventMap, DocumentAndElementEventHandlersEventMap, GlobalEventHandlersEventMap {
|
||||
}
|
||||
|
||||
@ -17181,7 +17187,6 @@ interface WindowEventMap extends GlobalEventHandlersEventMap, WindowEventHandler
|
||||
|
||||
/** A window containing a DOM document; the document property points to the DOM document loaded in that window. */
|
||||
interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandlers, WindowEventHandlers, WindowLocalStorage, WindowOrWorkerGlobalScope, WindowSessionStorage {
|
||||
HTMLDocument: Document;
|
||||
/** @deprecated This is a legacy alias of `navigator`. */
|
||||
readonly clientInformation: Navigator;
|
||||
/**
|
||||
@ -18246,7 +18251,6 @@ declare var Image: {
|
||||
declare var Option: {
|
||||
new(text?: string, value?: string, defaultSelected?: boolean, selected?: boolean): HTMLOptionElement;
|
||||
};
|
||||
declare var HTMLDocument: Document;
|
||||
/** @deprecated This is a legacy alias of `navigator`. */
|
||||
declare var clientInformation: Navigator;
|
||||
/**
|
||||
|
||||
@ -10,7 +10,7 @@ tests/cases/compiler/intersectionsOfLargeUnions2.ts(31,15): error TS2536: Type '
|
||||
interface ElementTagNameMap {
|
||||
~~~~~~~~~~~~~~~~~
|
||||
!!! error TS2300: Duplicate identifier 'ElementTagNameMap'.
|
||||
!!! related TS6203 /.ts/lib.dom.d.ts:18258:6: 'ElementTagNameMap' was also declared here.
|
||||
!!! related TS6203 /.ts/lib.dom.d.ts:18263:6: 'ElementTagNameMap' was also declared here.
|
||||
[index: number]: HTMLElement
|
||||
}
|
||||
|
||||
|
||||
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user