desmondmorris / node-twitter

Client library for the Twitter REST and Streaming API's.
https://www.npmjs.com/package/twitter
MIT License
1.27k stars 237 forks source link

TypeScript types (declaration file) #309

Closed nunoarruda closed 3 years ago

nunoarruda commented 6 years ago

Is there a declaration file somewhere for this project? I can't seem to find it anywhere.

I've tried npm install @types/twitter but that's a declaration file Twitter for Websites (npmjs.com/package/@types/twitter)

conatus commented 6 years ago

@nunoarruda

Did you have any luck finding this?

nunoarruda commented 6 years ago

No, no luck. We could create a definition file ourselves and put it on DefinitelyTyped but this project looks to be abandoned so I'm not sure if it's worth the trouble.

conatus commented 6 years ago

@desmondmorris

Would it be fair to say this library is now unmaintained? Thanks for all your work on this so far!

abraham commented 6 years ago

I've been using https://github.com/ttezel/twit and while the @types/twit definitions have needed a couple of minor updates it's worked well.

conatus commented 6 years ago

Thanks @abraham for the recommendation!

monsieurnebo commented 3 years ago

For your information, the @types related to this project (node-twitter) seem now available through DefinitlyTyped.

However, it lacks of "tweet type" (and more). This repo seems to have up-to-date API V2 @types: https://github.com/PLhery/node-twitter-api-v2/tree/master/src/types/v2