Skip to content

Instantly share code, notes, and snippets.

@MichalZalecki MichalZalecki/HNpost.ts Secret
Created Apr 23, 2019

What would you like to do?
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
You can’t perform that action at this time.