Skip to content

Documentation issue: usage with TypeScript is wrong #1392

Description

@IvanAdmaers

The "TypeScript Usage" section on NPM says that the package needs to be imported as default import:

import Jimp from "jimp";
Image

But it's incorrect. The correct import is a named import like this:

import { Jimp } from "jimp";

Your website docs is correct but the README on NPM is wrong.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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