Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type typescript types #5

Open
borracciaBlu opened this issue Jul 25, 2022 · 2 comments
Open

Type typescript types #5

borracciaBlu opened this issue Jul 25, 2022 · 2 comments
Assignees

Comments

@borracciaBlu
Copy link
Contributor

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
Copy link
Owner

medikoo commented Jul 25, 2022

@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
Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants