I'm writing a .d.ts file that will be shipped with an existing JavaScript library that doesn't use the TypeScript compiler or contain any TypeScript code. Do I need to add a tsconfig.json to the library to support how the .d.ts file will be interpreted by clients who import these types from the library?
Or is it enough to simply add an index.d.ts file to the library's build output and reference it in package.json's types
?
Note that this is not for DefinitelyTyped. It's for including types in an existing library's npm package.