Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@MichalZalecki
Created April 23, 2019 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MichalZalecki/a9e30326f35021dc91834bda14d922da to your computer and use it in GitHub Desktop.
Save MichalZalecki/a9e30326f35021dc91834bda14d922da to your computer and use it in GitHub Desktop.
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