Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

no-unused-variable false positive when referenced as a type (rather than a value) #613

Closed
adidahiya opened this issue Aug 26, 2015 · 0 comments

Comments

@adidahiya
Copy link
Contributor

code samples below, reported in #191

from @SenHeng:

import Foo = this.that.Foo;

module some.module.blah {
 export  class bar {
    private foo: Foo;
  }
}

Foo is a false positive


from @nikklassen:

import DateTimeOpts = Intl.DateTimeFormatOptions;

interface MyDateTimeOpts extends DateTimeOpts {
    timezoneOffset: number;
}

let opts: MyDateTimeOpts;
console.log(opts.timezoneOffset - 1);

DateTimeOpts is a false positive

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant