yalc icon indicating copy to clipboard operation
yalc copied to clipboard

Add types field to package.json

Open Blasz opened this issue 5 years ago • 2 comments

This allows the types in the repo to be consumed by third parties.

Blasz avatar Sep 27 '19 02:09 Blasz

is it supposed to?

wclr avatar Sep 27 '19 16:09 wclr

Well, the project is written in typescript and emits declaration files, so it is the recommended approach to expose these types directly for consumers, see https://www.typescriptlang.org/docs/handbook/declaration-files/publishing.html.

I'm consuming yalc via node rather than using the CLI so I'd like to leverage the types of the functions that are exported from index.

Blasz avatar Sep 30 '19 01:09 Blasz