-
Notifications
You must be signed in to change notification settings - Fork 13k
Closed
Closed
Copy link
Labels
Domain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptThe issue relates to the different libraries shipped with TypeScriptFixedA PR has been merged for this issueA PR has been merged for this issueSuggestionAn idea for TypeScriptAn idea for TypeScript
Milestone

Description
TypeScript Version: 1.8.0 / nightly (2.0.0-dev.201xxxxx)
Code
// A *self-contained* demonstration of the problem follows...
class CustomElement extends HTMLElement {
private shadowDom : ShadowRoot;
createdCallback() : void {
this.shadowDom = this.attachShadow({mode: "closed"});
}
}
Expected behavior:
ShadowRoot is recognized as a valid type, and the HTMLElement's attachShadow function is recognized as per the DOM standard.
Actual behavior:
Neither ShadorRoot nor the attachShadow functions are recognized.
bradleyayers, ixrock, marcoms, klebba and leegee
Metadata
Metadata
Assignees
Labels
Domain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptThe issue relates to the different libraries shipped with TypeScriptFixedA PR has been merged for this issueA PR has been merged for this issueSuggestionAn idea for TypeScriptAn idea for TypeScript