-
Notifications
You must be signed in to change notification settings - Fork 13k
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptThe issue relates to the different libraries shipped with TypeScriptHelp WantedYou can do thisYou can do this
Description
TypeScript Version: 3.2.0-dev.201xxxxx
Search Terms: ShadowRoot
Code
const f = (o) => o instanceof ShadowRoot;
Expected behavior:
No errors
Actual behavior:
Error: 'ShadowRoot' only refers to a type, but is being used as a value here.
Playground Link: http://www.typescriptlang.org/play/#src=const%20f%20%3D%20(o)%20%3D%3E%20o%20instanceof%20ShadowRoot%3B
Related Issues: #10401
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptThe issue relates to the different libraries shipped with TypeScriptHelp WantedYou can do thisYou can do this