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>;