-
Notifications
You must be signed in to change notification settings - Fork 13.1k
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptFixedA PR has been merged for this issueA PR has been merged for this issue
Milestone
Description
The below statement does not work as it wants the left side of the instanceof statement to be of type any, which kind of defeats the purpose as once you do that TS will not longer use typegaurds, or am I missing something
constructor(template: string|templateMap){
if (template instanceof templateMap) {
con = super.getPaneContainer(template.selector);
} else {
con = super.getPaneContainer('.ui-layout-center');
}
}
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptFixedA PR has been merged for this issueA PR has been merged for this issue