Skip to content

ShadowRoot should be a class, not an interface #27929

Closed
@justinfagnani

Description

@justinfagnani

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

No one assigned

    Labels

    BugA bug in TypeScriptDomain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptHelp WantedYou can do this

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions