#Type inference from custom NPM package

4 messages · Page 1 of 1 (latest)

shrewd iron
#

How do I use the types from my NPM package in my project? All the types are stored ./src/types/* under the .d.ts extension

#

First time making a npm package and new to TS/JS

dark notch
#

@shrewd iron You don't really want to hand-write .d.ts files for your project; you write .ts files and compile them to generate the .d.ts files

#

At least, assuming this is a project written in TS - if you're hand-writing types for a JS project, then yeah, maybe