Example to demonstrate type-checking API data with TypeScript
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore
README.md
package.json
tsconfig.json
yarn.lock

README.md

hacker-news-ts

Example script to demonstrate type-checking API data with TypeScript. This is example code from the article Checking Types Against the Real World in TypeScript

Source code is in src/index.ts.

Requires yarn

Install project dependencies before running the code or running the type checker:

yarn install

To run the code:

yarn start