forked from microsoft/TypeScript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypeFromPropertyAssignment21.types
More file actions
21 lines (18 loc) · 1.01 KB
/
typeFromPropertyAssignment21.types
File metadata and controls
21 lines (18 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
//// [tests/cases/conformance/salsa/typeFromPropertyAssignment21.ts] ////
=== chrome-devtools-DOMExtension.js ===
// Extend that DOM! (doesn't work, but shouldn't crash)
Event.prototype.removeChildren = function () {
>Event.prototype.removeChildren = function () { this.textContent = 'nope, not going to happen'} : () => void
>Event.prototype.removeChildren : any
>Event.prototype : Event<EventTarget>
>Event : { new (type: string, eventInitDict?: EventInit): Event<EventTarget>; prototype: Event<EventTarget>; readonly NONE: 0; readonly CAPTURING_PHASE: 1; readonly AT_TARGET: 2; readonly BUBBLING_PHASE: 3; }
>prototype : Event<EventTarget>
>removeChildren : any
>function () { this.textContent = 'nope, not going to happen'} : () => void
this.textContent = 'nope, not going to happen'
>this.textContent = 'nope, not going to happen' : "nope, not going to happen"
>this.textContent : any
>this : Event<EventTarget>
>textContent : any
>'nope, not going to happen' : "nope, not going to happen"
}