Skip to content

Documentation issue: usage with TypeScript is wrong #1392

@IvanAdmaers

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.

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