Skip to content
This repository was archived by the owner on Jan 19, 2019. It is now read-only.
This repository was archived by the owner on Jan 19, 2019. It is now read-only.

What's the recommended way to work around "is not defined" for type definitions? #466

Closed
@trusktr

Description

@trusktr

Hello, how can I work around the error

  ✘  http://eslint.org/docs/rules/no-undef                'NodeListOf' is not defined
  src/util.ts:10:60
      const links = document.querySelectorAll( selector ) as NodeListOf<HTMLElement>

? Do I have to use a comment to tell eslint to ignore that error on that line? Is there any other better workaround?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions