When I updated my config to be moduleResolution: Node16 (or NodeNext) https://npm.im/anylogger stopped working. I'm getting the error from the title
Needless to say, it is inaccurate. The type declaration of anylogger is like this (tl;dr;)
export interface AnyLogger<L extends BaseLevels, T extends BaseLogger<L> = Logger<L>> {
/**
* @param name The name of the new logger.
* @param config An optional config object.
* @returns A logger with the given `name` and `config`.
*/
(name: string, config?: object | undefined): T
// more overloads
}
declare const anylogger: AnyLogger<BaseLevels>
export default anylogger
None of the other overloads work either (including new ())