@@ -37,9 +37,9 @@ Added in v2.2.7
3737 - [ fromArray] ( #fromarray )
3838 - [ fromPartial] ( #frompartial )
3939 - [ fromRecord] ( #fromrecord )
40+ - [ fromStruct] ( #fromstruct )
4041 - [ fromSum] ( #fromsum )
4142 - [ fromTuple] ( #fromtuple )
42- - [ fromType] ( #fromtype )
4343 - [ intersect] ( #intersect )
4444 - [ lazy] ( #lazy )
4545 - [ mapLeftWithInput] ( #mapleftwithinput )
@@ -49,11 +49,13 @@ Added in v2.2.7
4949 - [ readonly] ( #readonly )
5050 - [ record] ( #record )
5151 - [ refine] ( #refine )
52+ - [ struct] ( #struct )
5253 - [ sum] ( #sum )
5354 - [ tuple] ( #tuple )
54- - [ type] ( #type )
5555 - [ union] ( #union )
5656 - [ withMessage] ( #withmessage )
57+ - [ ~~ fromType~~ ] ( #fromtype )
58+ - [ ~~ type~~ ] ( #type )
5759- [ constructors] ( #constructors )
5860 - [ fromGuard] ( #fromguard )
5961 - [ fromRefinement] ( #fromrefinement )
@@ -223,6 +225,18 @@ export declare const fromRecord: <I, A>(codomain: Decoder<I, A>) => Decoder<Reco
223225
224226Added in v2.2.8
225227
228+ ## fromStruct
229+
230+ **Signature**
231+
232+ ` ` ` ts
233+ export declare const fromStruct: <P extends Record <string , Decoder <any , any >>>(
234+ properties : P
235+ ) => Decoder <{ [K in keyof P ]: K .InputOf <' Either' , P [K ]> }, { [K in keyof P ]: K .TypeOf <' Either' , P [K ]> }>
236+ ` ` `
237+
238+ Added in v2.2.15
239+
226240## fromSum
227241
228242**Signature**
@@ -249,18 +263,6 @@ export declare const fromTuple: <C extends readonly Decoder<any, any>[]>(
249263
250264Added in v2.2.8
251265
252- ## fromType
253-
254- **Signature**
255-
256- ` ` ` ts
257- export declare const fromType: <P extends Record <string , Decoder <any , any >>>(
258- properties : P
259- ) => Decoder <{ [K in keyof P ]: K .InputOf <' Either' , P [K ]> }, { [K in keyof P ]: K .TypeOf <' Either' , P [K ]> }>
260- ` ` `
261-
262- Added in v2.2.8
263-
264266## intersect
265267
266268**Signature**
@@ -362,6 +364,18 @@ export declare const refine: <A, B extends A>(
362364
363365Added in v2.2.7
364366
367+ ## struct
368+
369+ **Signature**
370+
371+ ` ` ` ts
372+ export declare const struct: <A >(
373+ properties : { [K in keyof A ]: Decoder <unknown , A [K ]> }
374+ ) => Decoder <unknown , { [K in keyof A ]: A [K ] }>
375+ ` ` `
376+
377+ Added in v2.2.15
378+
365379## sum
366380
367381**Signature**
@@ -386,18 +400,6 @@ export declare const tuple: <A extends readonly unknown[]>(
386400
387401Added in v2.2.7
388402
389- ## type
390-
391- **Signature**
392-
393- ` ` ` ts
394- export declare const type: <A >(
395- properties : { [K in keyof A ]: Decoder <unknown , A [K ]> }
396- ) => Decoder <unknown , { [K in keyof A ]: A [K ] }>
397- ` ` `
398-
399- Added in v2.2.7
400-
401403## union
402404
403405**Signature**
@@ -422,6 +424,34 @@ export declare const withMessage: <I>(
422424
423425Added in v2.2.9
424426
427+ ## ~~fromType~~
428+
429+ Use ` fromStruct ` instead.
430+
431+ **Signature**
432+
433+ ` ` ` ts
434+ export declare const fromType: <P extends Record <string , Decoder <any , any >>>(
435+ properties : P
436+ ) => Decoder <{ [K in keyof P ]: K .InputOf <' Either' , P [K ]> }, { [K in keyof P ]: K .TypeOf <' Either' , P [K ]> }>
437+ ` ` `
438+
439+ Added in v2.2.8
440+
441+ ## ~~type~~
442+
443+ Use ` struct ` instead.
444+
445+ **Signature**
446+
447+ ` ` ` ts
448+ export declare const type: <A >(
449+ properties : { [K in keyof A ]: Decoder <unknown , A [K ]> }
450+ ) => Decoder <unknown , { [K in keyof A ]: A [K ] }>
451+ ` ` `
452+
453+ Added in v2.2.7
454+
425455# constructors
426456
427457## fromGuard
0 commit comments