I have recently developed a npm package called observe-object-path, which can be found on GitHub at https://github.com/d6u/observe-object-path. This package is written in Typescript and has a build step that compiles it down to ES5 for compatibility with any JavaScript environment (see details at https://github.com/d6u/observe-object-path/blob/master/package.json#L39-L41).
Given that the module is already coded in Typescript, I am wondering if there is a way to automatically generate a .d.ts file for my package so that users of Typescript can easily use it without much configuration.
If automatic generation is not feasible, where would be the best location to store the .d.ts file? Would placing it under a 'ts' directory similar to what Rx 4 is doing here: https://github.com/Reactive-Extensions/RxJS/tree/master/ts, be the most suitable option?