Skip to content

Instantly share code, notes, and snippets.

@nvie
Created October 26, 2020 22:07
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 nvie/df3915514cad1c68a9969ab1cef1c07b to your computer and use it in GitHub Desktop.
Save nvie/df3915514cad1c68a9969ab1cef1c07b to your computer and use it in GitHub Desktop.
import { Decoder, object, string } from 'decoders';
type Example = {
eg: string;
};
const exampleDecoder: Decoder<Example> = object({
eg: string
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment