Skip to content

Minimatch export with Node16 module/cjs consumer is unfriendly #194

@Gerrit0

Description

@Gerrit0

TypeDoc uses common js modules, and passes several minimatch instances around. Prior to switching to the builtin types, I could do:

import { Minimatch } from "minimatch";
declare const mm: Minimatch;

After upgrading, due to the Object.assign call in index-cjs.ts which doesn't preserve type exports, I have to do:

import { Minimatch } from "minimatch";
declare const mm: InstanceType<typeof Minimatch>;

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