Skip to content

Missing type definition (d.ts) causes incompatibility with Typescript noImplicityAny compiler flag #417

@BeGj

Description

@BeGj

Using ZoomPlugin with latest Angular 11 with strict Typescript options.

import * as ZoomPlugin from 'chartjs-plugin-zoom;

Causes error in vscode and when compiling.

Could not find declaration file for module chartjs-plugin-zoom. ..... Implicitly has an 'any' type.
Try `npm install @types/chartjs-plugin-zoom`

How do I solve this? Without disabling noImplicityAny flag, or creating a d.ts file manually. Would be nice if a simple type definition was made available. Or if there is any smarter solutions?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions