-
-
Save MichalZalecki/a9e30326f35021dc91834bda14d922da to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as t from "io-ts"; | |
const HNPost = t.type({ | |
title: t.string, | |
url: t.string, | |
points: t.number, | |
}); | |
type HNPost = t.TypeOf<typeof HNPost>; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment