I am currently in the process of creating a .d.ts file for an established JavaScript library that does not utilize the TypeScript compiler or include any TypeScript code. Should I include a tsconfig.json file in the library to ensure proper interpretation of the .d.ts file by clients who import these types from the library?
Alternatively, would it suffice to just add an index.d.ts file to the library's build output and reference it in the package.json under types
?
Please note that this is specifically for adding types to an existing library's npm package, not intended for DefinitelyTyped.