Closed
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