medikoo / type

Runtime validation and processing of JavaScript types
ISC License
35 stars 4 forks source link

Type typescript types #5

Open borracciaBlu opened 1 year ago

borracciaBlu commented 1 year ago

Hi @medikoo

I've been using type with typescript recently and as the ts type checker was warning about missing types for type I've started working on the .d.ts files.

This is what i've got so far @types/type.

I didn't make any PR yet to DefinitelyTyped, but if I manage to get something good enough that would be the final goal. Please let me know If you have any comments on this.

Regards

medikoo commented 1 year ago

@borracciaBlu Great thanks for raising that! I would be happy to host type files in the context of this repository (assuming that's preferred approach in TS ecosystem)

So please post a PR if you find it useful that types live in here.

borracciaBlu commented 1 year ago

Hi @medikoo,

yes, that's fine.

Now that you have authored a declaration file following the steps of this guide, it is time to publish it to npm. There are two main ways you can publish your declaration files to npm:

1 - bundling with your npm package 2 - publishing to the @types organization on npm.

I'll polish and test the code and PR asap.