twitter-api-ts
TypScript compatible Twitter API client.
- io-ts is used to perform IO validation for type safety.
- fp-ts is used for its
Task
,Either
, andOption
types. - Request functions return types of
type Response<T> = either.Either<ErrorResponse, T>
.
This library is written in TypeScript and is published in JavaScript with type declaration files.
Installation
yarn add twitter-api-ts
Example
;;;;;;fetchHomeTimeline// We use fp-ts’ Task type, which is lazy. Running the task returns a// promise..run.then;
Development
yarn
yarn compile
yarn lint