Created
June 25, 2017 14:36
-
-
Save kofno/246189259b01fa5bfcdbf8edf82b139d to your computer and use it in GitHub Desktop.
Structured decoder signature
This file contains hidden or 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
| /** | |
| * Applies the `decoder` to all of the elements of an array. | |
| */ | |
| export declare const array: <A>(decoder: Decoder<A>) => Decoder<A[]>; | |
| /** | |
| * Decodes the value at a particular field in a JavaScript object. | |
| */ | |
| export declare const field: <A>(name: string, decoder: Decoder<A>) => Decoder<A>; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment