Can you provide type defintions in your project or trigger a separate task as described here:
https://www.typescriptlang.org/docs/handbook/declaration-files/publishing.html
Usually the owner of a npm module add the definition in the repo:
https://github.com/DefinitelyTyped/DefinitelyTyped
and the build process automatically push a new type module to npm.