File tree 1 file changed +3
-5
lines changed
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 1
- import { Decoder , DecoderObject } from './decoder' ;
1
+ import { Decoder } from './decoder' ;
2
2
3
3
/** See `Decoder.string` */
4
4
export function string ( ) : Decoder < string > {
@@ -27,9 +27,7 @@ export function constant(value: any): Decoder<any> {
27
27
}
28
28
29
29
/** See `Decoder.object` */
30
- export function object < A > ( decoders : DecoderObject < A > ) : Decoder < A > {
31
- return Decoder . object ( decoders ) ;
32
- }
30
+ export const object = Decoder . object ;
33
31
34
32
/** See `Decoder.array` */
35
33
export const array : < A > ( decoder : Decoder < A > ) => Decoder < A [ ] > = Decoder . array ;
@@ -38,7 +36,7 @@ export const array: <A>(decoder: Decoder<A>) => Decoder<A[]> = Decoder.array;
38
36
export const dict : < A > ( decoder : Decoder < A > ) => Decoder < { [ name : string ] : A } > = Decoder . dict ;
39
37
40
38
/** See `Decoder.optional` */
41
- export const optional : < A > ( decoder : Decoder < A > ) => Decoder < A | undefined > = Decoder . optional ;
39
+ export const optional = Decoder . optional ;
42
40
43
41
/** See `Decoder.oneOf` */
44
42
export const oneOf : < A > ( ...decoders : Decoder < A > [ ] ) => Decoder < A > = Decoder . oneOf ;
You can’t perform that action at this time.
0 commit comments