decoders 2.4.1 → 2.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -580,7 +580,7 @@ declare function enum_<TEnum extends Record<string, string | number>>(enumObj: T
|
|
|
580
580
|
* error messages and is more performant at runtime because it doesn't have to
|
|
581
581
|
* try all decoders one by one.
|
|
582
582
|
*/
|
|
583
|
-
declare function taggedUnion<O extends Record<string, Decoder<unknown
|
|
583
|
+
declare function taggedUnion<O extends Record<string, Decoder<unknown>>>(field: string, mapping: O): Decoder<DecoderType<O[keyof O]>>;
|
|
584
584
|
/**
|
|
585
585
|
* Briefly peek at a runtime input using a "scout" decoder first, then decide
|
|
586
586
|
* which decoder to run on the (original) input, based on the information that
|
package/dist/index.d.ts
CHANGED
|
@@ -580,7 +580,7 @@ declare function enum_<TEnum extends Record<string, string | number>>(enumObj: T
|
|
|
580
580
|
* error messages and is more performant at runtime because it doesn't have to
|
|
581
581
|
* try all decoders one by one.
|
|
582
582
|
*/
|
|
583
|
-
declare function taggedUnion<O extends Record<string, Decoder<unknown
|
|
583
|
+
declare function taggedUnion<O extends Record<string, Decoder<unknown>>>(field: string, mapping: O): Decoder<DecoderType<O[keyof O]>>;
|
|
584
584
|
/**
|
|
585
585
|
* Briefly peek at a runtime input using a "scout" decoder first, then decide
|
|
586
586
|
* which decoder to run on the (original) input, based on the information that
|