Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
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

Copy link
Copy link
Closed
@trusktr

Description

@trusktr
Issue body actions

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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.