Skip to content

TS6133 error when "noUnusedLocals": true #50

@davyvanlaere

Description

@davyvanlaere

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions