Hi!
I inherited an old app written in JS that uses JSDoc to add types. It has a bunch of index.d.ts files where namespaces and types are declared, e.g.:
declare namespace AB.API {}
These namespaces and types are are later used in JS files in JSDoc comments:
/**
* @param {AB.API.RequestArguments} requestArguments
* @returns {Array<string>}
*/
const requestArgumentsErrors = (requestArguments) => ...
These index.d.ts are added in tsconfig.json via typesRoot options:
"typeRoots": [
"./typings",
"node_modules/@types"
],
As in the title, after upgrading TS to 5.1.x I'm getting File '../index.d.ts' is not a module errors. Is there some option I can change to make it work as before?
Cheers!