Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
378 views
in Technique[技术] by (71.8m points)

angular - tslint import is declared but its value is never read false positive

In my ionic project ts code I use Refresher from ionic-angular

import { NavController, Refresher } from 'ionic-angular';
...
export class myClass {
  refresh: BehaviorSubject<{ searchTerm: string; refresher: Refresher }>;
...

However I get the error 'Refresher' is declared but its value is never read. If I delete the import the code obviously doesn't compile.

What is the underlying cause here ? I know how to ignore the error and I don't want to do that, I want to actually understand and fix it.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...