angular2-lightbox icon indicating copy to clipboard operation
angular2-lightbox copied to clipboard

TS6133 error when "noUnusedLocals": true

Open davyvanlaere opened this issue 8 years ago • 0 comments

When including version 1.3.0 in a project where "noUnusedLocals" in the tsconfig file is set to true:

ERROR in node_modules/angular2-lightbox/src/lightbox-overlay.component.ts(27,11): error TS6133: '_classList' is declared but its value is never read.

My suggestion:

  • use @HostBinding('class') on the _classList field.
  • remove it from the 'host' section of the @Component annotation

davyvanlaere avatar Mar 04 '18 10:03 davyvanlaere