node_modules/@types/node/events.d.ts:144:18 - error TS18028: Private identifiers are only available when targeting ECMAScript 2015 and higher.
144 readonly #internalTypeOnlyBrand?: Events;
~~~~~~~~~~~~~~~~~~~~~~
Found 1 error in node_modules/@types/node/events.d.ts:144
I suppose this should not happen with a patch release. The same project builds fine with @types/node@22.8.4 or @types/node@20.17.3
{
"include": ["lib/*", "lib/**/*"],
"compilerOptions": {
"allowJs": true,
"declaration": true,
"emitDeclarationOnly": true,
"outDir": "dist",
"declarationMap": true,
"skipLibCheck": true
}
}
(intended to build the type files, then check if the generated files are actually correct)