Coder Social home page Coder Social logo

abraham / twitter-d Goto Github PK

View Code? Open in Web Editor NEW
54.0 4.0 8.0 357 KB

TypeScript types for Twitter API objects

Home Page: https://www.npmjs.com/package/twitter-d

License: MIT License

TypeScript 100.00%
twitter twitter-api typescript types tweet status user hacktoberfest

twitter-d's Introduction

Recent Tweets

Abraham Williams's avatar Abraham Williams @abraham Saturday, May 13, 2023 at 1:25 PM

Ready to try Mastodon? Here’s how to get started https://t.co/owYhfYDgrL via @firefox

ReplyReplyRetweetRetweetLike 2Like 2


Abraham Williams's avatar Abraham Williams @abraham Wednesday, May 3, 2023 at 6:56 PM

Musk threatens to reassign NPR Twitter account if it won’t start tweeting again

https://t.co/LAnpU8ydGy

Reply 1Reply 1RetweetRetweetLike 2Like 2


Abraham Williams's avatar Abraham Williams @abraham Wednesday, April 12, 2023 at 7:16 PM

NPR quits Elon Musk's Twitter over 'government-funded' label

https://t.co/M608OOwcVn

ReplyReplyRetweetRetweetLikeLike


Abraham Williams's avatar Abraham Williams @abraham Sunday, April 9, 2023 at 3:46 PM

The sudden death and rebirth of Tweetbot

https://t.co/fCRsiXRrYg

ReplyReplyRetweetRetweetLikeLike


Abraham Williams's avatar Abraham Williams @abraham Thursday, April 6, 2023 at 11:15 PM

Twitter slaps NPR with a dubious new tag: ‘State-affiliated media’

https://t.co/aB8TaxVFHs

Reply 1Reply 1RetweetRetweetLike 1Like 1

Last updated Tuesday, June 13, 2023 at 5:33 PM UTC.

twitter-d's People

Contributors

abraham avatar dependabot[bot] avatar renovate-bot avatar takanakahiko avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

twitter-d's Issues

Nested User fields do not exist

Under Status.User, any key that is not in both User and TrimmedUser does not exist. I believe this is because of the incorrect type here:

export type User = TrimmedUser | FullUser

Screen Shot 2019-07-26 at 2 55 49 AM

FullUser and TrimmedUser should be exported from root

As a follow-up to this work: #37

A user can now import a specific type with import { FullUser } from "twitter-d/types/user";, but that goes against tslint rule no-submodule-imports. Just exporting it out of the root fixes the problem.

Create multiple Status types

There are a number of fields that are grouped together for specific types of tweets. It would be nice to have the following types:

export type Status = SimpleStatus | ExtendedStatus | QuotedStatus | ReplyStatus | RetweetStatus;

If there are too many permutations this might not make sense.

Field text is missing in status

Hello,

Many thanks to share these declarations.
Why did you remove the text field of a status?
Best regards,

Pierre-Olivier

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.