Created
October 26, 2020 22:07
-
-
Save nvie/df3915514cad1c68a9969ab1cef1c07b 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 { 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