decoders 2.0.0-beta1 → 2.0.0-beta2

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.
Files changed (135) hide show
  1. package/{es → _esm}/_guard.js +0 -0
  2. package/{cjs → _esm}/_guard.js.flow +0 -0
  3. package/{es → _esm}/_types.js +0 -0
  4. package/{cjs → _esm}/_types.js.flow +0 -0
  5. package/{es → _esm}/_utils.js +0 -0
  6. package/{cjs → _esm}/_utils.js.flow +0 -0
  7. package/{es → _esm}/annotate.js +0 -0
  8. package/{cjs → _esm}/annotate.js.flow +0 -0
  9. package/{es/stdlib → _esm/core}/array.js +0 -0
  10. package/{cjs/stdlib → _esm/core}/array.js.flow +0 -0
  11. package/{es/stdlib → _esm/core}/boolean.js +0 -0
  12. package/{cjs/stdlib → _esm/core}/boolean.js.flow +0 -0
  13. package/{es/stdlib → _esm/core}/composition.js +0 -0
  14. package/{cjs/stdlib → _esm/core}/composition.js.flow +0 -0
  15. package/{es/stdlib → _esm/core}/constants.js +0 -0
  16. package/{cjs/stdlib → _esm/core}/constants.js.flow +0 -0
  17. package/{es/stdlib → _esm/core}/date.js +0 -0
  18. package/{cjs/stdlib → _esm/core}/date.js.flow +0 -0
  19. package/{es/stdlib → _esm/core}/describe.js +0 -0
  20. package/{cjs/stdlib → _esm/core}/describe.js.flow +0 -0
  21. package/{es/stdlib → _esm/core}/dispatch.js +0 -0
  22. package/{cjs/stdlib → _esm/core}/dispatch.js.flow +0 -0
  23. package/{es/stdlib → _esm/core}/either.js +0 -0
  24. package/{cjs/stdlib → _esm/core}/either.js.flow +0 -0
  25. package/{es/stdlib → _esm/core}/fail.js +0 -0
  26. package/{cjs/stdlib → _esm/core}/fail.js.flow +0 -0
  27. package/{es/stdlib → _esm/core}/instanceOf.js +0 -0
  28. package/{cjs/stdlib → _esm/core}/instanceOf.js.flow +0 -0
  29. package/{es/stdlib → _esm/core}/json.js +0 -0
  30. package/{cjs/stdlib → _esm/core}/json.js.flow +0 -0
  31. package/{es/stdlib → _esm/core}/lazy.js +0 -0
  32. package/{cjs/stdlib → _esm/core}/lazy.js.flow +0 -0
  33. package/{es/stdlib → _esm/core}/mapping.js +0 -0
  34. package/{cjs/stdlib → _esm/core}/mapping.js.flow +0 -0
  35. package/{es/stdlib → _esm/core}/number.js +0 -0
  36. package/{cjs/stdlib → _esm/core}/number.js.flow +0 -0
  37. package/{es/stdlib → _esm/core}/object.js +0 -0
  38. package/{cjs/stdlib → _esm/core}/object.js.flow +0 -0
  39. package/{es/stdlib → _esm/core}/optional.js +0 -0
  40. package/{cjs/stdlib → _esm/core}/optional.js.flow +0 -0
  41. package/{es/stdlib → _esm/core}/string.js +0 -0
  42. package/{cjs/stdlib → _esm/core}/string.js.flow +0 -0
  43. package/{es/stdlib → _esm/core}/tuple.js +0 -0
  44. package/{cjs/stdlib → _esm/core}/tuple.js.flow +0 -0
  45. package/{es → _esm}/format/index.js +0 -0
  46. package/{cjs → _esm}/format/index.js.flow +0 -0
  47. package/{es → _esm}/format/inline.js +0 -0
  48. package/{cjs → _esm}/format/inline.js.flow +0 -0
  49. package/{es → _esm}/format/short.js +0 -0
  50. package/{cjs → _esm}/format/short.js.flow +0 -0
  51. package/{es → _esm}/index.js +18 -18
  52. package/{cjs → _esm}/index.js.flow +19 -26
  53. package/{es → _esm}/result.js +0 -0
  54. package/{cjs → _esm}/result.js.flow +0 -0
  55. package/{cjs/_guard.js → _guard.js} +0 -0
  56. package/_guard.js.flow +20 -0
  57. package/{cjs/_types.js → _types.js} +0 -0
  58. package/_types.js.flow +20 -0
  59. package/{cjs/_utils.js → _utils.js} +0 -0
  60. package/_utils.js.flow +97 -0
  61. package/{cjs/annotate.js → annotate.js} +0 -0
  62. package/annotate.js.flow +218 -0
  63. package/{cjs/stdlib → core}/array.js +0 -0
  64. package/core/array.js.flow +103 -0
  65. package/{cjs/stdlib → core}/boolean.js +0 -0
  66. package/core/boolean.js.flow +29 -0
  67. package/{cjs/stdlib → core}/composition.js +0 -0
  68. package/core/composition.js.flow +43 -0
  69. package/{cjs/stdlib → core}/constants.js +0 -0
  70. package/core/constants.js.flow +46 -0
  71. package/{cjs/stdlib → core}/date.js +0 -0
  72. package/core/date.js.flow +40 -0
  73. package/{cjs/stdlib → core}/describe.js +0 -0
  74. package/core/describe.js.flow +17 -0
  75. package/{cjs/stdlib → core}/dispatch.js +0 -0
  76. package/core/dispatch.js.flow +58 -0
  77. package/{cjs/stdlib → core}/either.js +0 -0
  78. package/core/either.js.flow +151 -0
  79. package/{cjs/stdlib → core}/fail.js +0 -0
  80. package/core/fail.js.flow +12 -0
  81. package/{cjs/stdlib → core}/instanceOf.js +0 -0
  82. package/core/instanceOf.js.flow +20 -0
  83. package/{cjs/stdlib → core}/json.js +0 -0
  84. package/core/json.js.flow +28 -0
  85. package/{cjs/stdlib → core}/lazy.js +0 -0
  86. package/core/lazy.js.flow +15 -0
  87. package/{cjs/stdlib → core}/mapping.js +0 -0
  88. package/core/mapping.js.flow +54 -0
  89. package/{cjs/stdlib → core}/number.js +0 -0
  90. package/core/number.js.flow +34 -0
  91. package/{cjs/stdlib → core}/object.js +0 -0
  92. package/core/object.js.flow +203 -0
  93. package/{cjs/stdlib → core}/optional.js +0 -0
  94. package/core/optional.js.flow +41 -0
  95. package/{cjs/stdlib → core}/string.js +0 -0
  96. package/core/string.js.flow +82 -0
  97. package/{cjs/stdlib → core}/tuple.js +0 -0
  98. package/core/tuple.js.flow +220 -0
  99. package/{cjs/format → format}/index.js +0 -0
  100. package/format/index.js.flow +4 -0
  101. package/{cjs/format → format}/inline.js +0 -0
  102. package/format/inline.js.flow +122 -0
  103. package/{cjs/format → format}/short.js +0 -0
  104. package/format/short.js.flow +8 -0
  105. package/{cjs/index.js → index.js} +18 -18
  106. package/index.js.flow +56 -0
  107. package/package.json +3 -12
  108. package/{cjs/result.js → result.js} +0 -0
  109. package/result.js.flow +166 -0
  110. package/ts/_guard.d.ts +0 -7
  111. package/ts/_helpers.d.ts +0 -79
  112. package/ts/_types.d.ts +0 -16
  113. package/ts/_utils.d.ts +0 -13
  114. package/ts/annotate.d.ts +0 -58
  115. package/ts/array.d.ts +0 -5
  116. package/ts/boolean.d.ts +0 -5
  117. package/ts/constants.d.ts +0 -11
  118. package/ts/date.d.ts +0 -4
  119. package/ts/describe.d.ts +0 -3
  120. package/ts/dispatch.d.ts +0 -8
  121. package/ts/either.d.ts +0 -61
  122. package/ts/fail.d.ts +0 -3
  123. package/ts/index.d.ts +0 -42
  124. package/ts/inline.d.ts +0 -3
  125. package/ts/instanceOf.d.ts +0 -3
  126. package/ts/json.d.ts +0 -11
  127. package/ts/lazy.d.ts +0 -3
  128. package/ts/mapping.d.ts +0 -4
  129. package/ts/number.d.ts +0 -6
  130. package/ts/object.d.ts +0 -33
  131. package/ts/optional.d.ts +0 -5
  132. package/ts/result.d.ts +0 -39
  133. package/ts/short.d.ts +0 -3
  134. package/ts/string.d.ts +0 -7
  135. package/ts/tuple.d.ts +0 -30
package/ts/annotate.d.ts DELETED
@@ -1,58 +0,0 @@
1
- export interface ObjectAnnotation {
2
- type: 'object';
3
- fields: { [key: string]: Annotation };
4
- text?: string;
5
- }
6
-
7
- export interface ArrayAnnotation {
8
- type: 'array';
9
- items: readonly Annotation[];
10
- text?: string;
11
- }
12
-
13
- export interface ScalarAnnotation {
14
- type: 'scalar';
15
- value: unknown;
16
- text?: string;
17
- }
18
-
19
- export interface FunctionAnnotation {
20
- type: 'function';
21
- text?: string;
22
- }
23
-
24
- export interface CircularRefAnnotation {
25
- type: 'circular-ref';
26
- text?: string;
27
- }
28
-
29
- export type Annotation =
30
- | ObjectAnnotation
31
- | ArrayAnnotation
32
- | ScalarAnnotation
33
- | FunctionAnnotation
34
- | CircularRefAnnotation;
35
-
36
- export function object(
37
- fields: { [key: string]: Annotation },
38
- text?: string,
39
- ): ObjectAnnotation;
40
- export function array(items: readonly Annotation[], text?: string): ArrayAnnotation;
41
- export function func(text?: string): FunctionAnnotation;
42
- export function scalar(value: unknown, text?: string): ScalarAnnotation;
43
- export function circularRef(text?: string): CircularRefAnnotation;
44
-
45
- export function updateText<A extends Annotation>(annotation: A, text?: string): A;
46
-
47
- export function merge(
48
- objAnnotation: ObjectAnnotation,
49
- fields: { [key: string]: Annotation },
50
- ): ObjectAnnotation;
51
-
52
- export function asAnnotation(thing: unknown): Annotation | void;
53
-
54
- export function annotate(value: unknown, text?: string): Annotation;
55
- export function annotateObject(
56
- obj: { [key: string]: unknown },
57
- text?: string,
58
- ): ObjectAnnotation;
package/ts/array.d.ts DELETED
@@ -1,5 +0,0 @@
1
- import { Decoder } from '../_types';
2
-
3
- export const poja: Decoder<unknown[]>;
4
- export function array<T>(decoder: Decoder<T>): Decoder<T[]>;
5
- export function nonEmptyArray<T>(decoder: Decoder<T>): Decoder<[T, ...T[]]>;
package/ts/boolean.d.ts DELETED
@@ -1,5 +0,0 @@
1
- import { Decoder } from '../_types';
2
-
3
- export const boolean: Decoder<boolean>;
4
- export const truthy: Decoder<boolean>;
5
- export const numericBoolean: Decoder<boolean>;
package/ts/constants.d.ts DELETED
@@ -1,11 +0,0 @@
1
- import { Decoder, Scalar } from '../_types';
2
-
3
- // Constants
4
-
5
- export const null_: Decoder<null>;
6
- export const undefined_: Decoder<undefined>;
7
- export function constant<T extends Scalar>(value: T): Decoder<T>;
8
- export function hardcoded<T extends Scalar>(value: T): Decoder<T>;
9
- export function hardcoded<T>(value: T): Decoder<T>;
10
- export const mixed: Decoder<unknown>;
11
- export const unknown: Decoder<unknown>;
package/ts/date.d.ts DELETED
@@ -1,4 +0,0 @@
1
- import { Decoder } from '../_types';
2
-
3
- export const date: Decoder<Date>;
4
- export const iso8601: Decoder<Date>;
package/ts/describe.d.ts DELETED
@@ -1,3 +0,0 @@
1
- import { Decoder } from '../_types';
2
-
3
- export function describe<T>(decoder: Decoder<T>, msg: string): Decoder<T>;
package/ts/dispatch.d.ts DELETED
@@ -1,8 +0,0 @@
1
- import { Decoder, DecoderType } from '../_types';
2
-
3
- export type $Values<T extends object> = T[keyof T];
4
-
5
- export function dispatch<O extends { [key: string]: Decoder<any> }>(
6
- field: string,
7
- mapping: O,
8
- ): Decoder<$Values<{ [key in keyof O]: DecoderType<O[key]> }>>;
package/ts/either.d.ts DELETED
@@ -1,61 +0,0 @@
1
- import { Decoder, Scalar } from '../_types';
2
-
3
- export function either<T1, T2>(d1: Decoder<T1>, d2: Decoder<T2>): Decoder<T1 | T2>;
4
- export function either2<T1, T2>(d1: Decoder<T1>, d2: Decoder<T2>): Decoder<T1 | T2>;
5
- export function either3<T1, T2, T3>(
6
- d1: Decoder<T1>,
7
- d2: Decoder<T2>,
8
- d3: Decoder<T3>,
9
- ): Decoder<T1 | T2 | T3>;
10
- export function either4<T1, T2, T3, T4>(
11
- d1: Decoder<T1>,
12
- d2: Decoder<T2>,
13
- d3: Decoder<T3>,
14
- d4: Decoder<T4>,
15
- ): Decoder<T1 | T2 | T3 | T4>;
16
- export function either5<T1, T2, T3, T4, T5>(
17
- d1: Decoder<T1>,
18
- d2: Decoder<T2>,
19
- d3: Decoder<T3>,
20
- d4: Decoder<T4>,
21
- d5: Decoder<T5>,
22
- ): Decoder<T1 | T2 | T3 | T4 | T5>;
23
- export function either6<T1, T2, T3, T4, T5, T6>(
24
- d1: Decoder<T1>,
25
- d2: Decoder<T2>,
26
- d3: Decoder<T3>,
27
- d4: Decoder<T4>,
28
- d5: Decoder<T5>,
29
- d6: Decoder<T6>,
30
- ): Decoder<T1 | T2 | T3 | T4 | T5 | T6>;
31
- export function either7<T1, T2, T3, T4, T5, T6, T7>(
32
- d1: Decoder<T1>,
33
- d2: Decoder<T2>,
34
- d3: Decoder<T3>,
35
- d4: Decoder<T4>,
36
- d5: Decoder<T5>,
37
- d6: Decoder<T6>,
38
- d7: Decoder<T7>,
39
- ): Decoder<T1 | T2 | T3 | T4 | T5 | T6 | T7>;
40
- export function either8<T1, T2, T3, T4, T5, T6, T7, T8>(
41
- d1: Decoder<T1>,
42
- d2: Decoder<T2>,
43
- d3: Decoder<T3>,
44
- d4: Decoder<T4>,
45
- d5: Decoder<T5>,
46
- d6: Decoder<T6>,
47
- d7: Decoder<T7>,
48
- d8: Decoder<T8>,
49
- ): Decoder<T1 | T2 | T3 | T4 | T5 | T6 | T7 | T8>;
50
- export function either9<T1, T2, T3, T4, T5, T6, T7, T8, T9>(
51
- d1: Decoder<T1>,
52
- d2: Decoder<T2>,
53
- d3: Decoder<T3>,
54
- d4: Decoder<T4>,
55
- d5: Decoder<T5>,
56
- d6: Decoder<T6>,
57
- d7: Decoder<T7>,
58
- d8: Decoder<T8>,
59
- d9: Decoder<T9>,
60
- ): Decoder<T1 | T2 | T3 | T4 | T5 | T6 | T7 | T8 | T9>;
61
- export function oneOf<T extends Scalar>(constants: readonly T[]): Decoder<T>;
package/ts/fail.d.ts DELETED
@@ -1,3 +0,0 @@
1
- import { Decoder } from '../_types';
2
-
3
- export function fail(msg: string): Decoder<never>;
package/ts/index.d.ts DELETED
@@ -1,42 +0,0 @@
1
- export { Decoder, Guard } from './_types';
2
- export { DecoderType, GuardType } from './_types';
3
-
4
- export { guard } from './_guard';
5
- export { compose, map, predicate } from './_utils';
6
-
7
- export { JSONArray, JSONObject, JSONValue } from './stdlib/json';
8
-
9
- export { array, nonEmptyArray, poja } from './stdlib/array';
10
- export { boolean, numericBoolean, truthy } from './stdlib/boolean';
11
- export {
12
- constant,
13
- hardcoded,
14
- mixed,
15
- null_,
16
- undefined_,
17
- unknown,
18
- } from './stdlib/constants';
19
- export { date, iso8601 } from './stdlib/date';
20
- export { describe } from './stdlib/describe';
21
- export { dispatch } from './stdlib/dispatch';
22
- export {
23
- either,
24
- either3,
25
- either4,
26
- either5,
27
- either6,
28
- either7,
29
- either8,
30
- either9,
31
- oneOf,
32
- } from './stdlib/either';
33
- export { fail } from './stdlib/fail';
34
- export { instanceOf } from './stdlib/instanceOf';
35
- export { json, jsonArray, jsonObject } from './stdlib/json';
36
- export { lazy } from './stdlib/lazy';
37
- export { mapping, dict } from './stdlib/mapping';
38
- export { integer, number, positiveInteger, positiveNumber } from './stdlib/number';
39
- export { exact, inexact, object, pojo } from './stdlib/object';
40
- export { maybe, nullable, optional } from './stdlib/optional';
41
- export { email, nonEmptyString, regex, string, url } from './stdlib/string';
42
- export { tuple1, tuple2, tuple3, tuple4, tuple5, tuple6 } from './stdlib/tuple';
package/ts/inline.d.ts DELETED
@@ -1,3 +0,0 @@
1
- import { Annotation } from '../annotate';
2
-
3
- export function formatInline(ann: Annotation): string;
@@ -1,3 +0,0 @@
1
- import { Decoder } from '../_types';
2
-
3
- export function instanceOf<T>(klass: new (...args: any) => T): Decoder<T>;
package/ts/json.d.ts DELETED
@@ -1,11 +0,0 @@
1
- import { Decoder } from '../_types';
2
-
3
- export type JSONValue = null | string | number | boolean | JSONObject | JSONArray;
4
- export interface JSONObject {
5
- [key: string]: JSONValue;
6
- }
7
- export type JSONArray = JSONValue[];
8
-
9
- export const json: Decoder<JSONValue>;
10
- export const jsonArray: Decoder<JSONArray>;
11
- export const jsonObject: Decoder<JSONObject>;
package/ts/lazy.d.ts DELETED
@@ -1,3 +0,0 @@
1
- import { Decoder } from '../_types';
2
-
3
- export function lazy<T>(decoderFn: () => Decoder<T>): Decoder<T>;
package/ts/mapping.d.ts DELETED
@@ -1,4 +0,0 @@
1
- import { Decoder } from '../_types';
2
-
3
- export function mapping<T>(decoder: Decoder<T>): Decoder<Map<string, T>>;
4
- export function dict<T>(decoder: Decoder<T>): Decoder<{ [key: string]: T }>;
package/ts/number.d.ts DELETED
@@ -1,6 +0,0 @@
1
- import { Decoder } from '../_types';
2
-
3
- export const integer: Decoder<number>;
4
- export const number: Decoder<number>;
5
- export const positiveInteger: Decoder<number>;
6
- export const positiveNumber: Decoder<number>;
package/ts/object.d.ts DELETED
@@ -1,33 +0,0 @@
1
- import { Decoder, DecoderType } from '../_types';
2
- import { AllowImplicit } from './_helpers';
3
-
4
- export type ObjectDecoderType<T> = AllowImplicit<{
5
- [key in keyof T]: DecoderType<T[key]>;
6
- }>;
7
-
8
- export const pojo: Decoder<{ [key: string]: unknown }>;
9
-
10
- export function object<O extends { [key: string]: Decoder<any> }>(
11
- mapping: O,
12
- ): Decoder<{ [K in keyof ObjectDecoderType<O>]: ObjectDecoderType<O>[K] }>;
13
- // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
14
- // This is basically just equivalent to:
15
- // ObjectDecoderType<O>
16
- //
17
- // But by "resolving" this with a mapped type, we remove the helper
18
- // type names from the inferred type here, making this much easier to
19
- // work with while developing.
20
-
21
- export function exact<O extends { [key: string]: Decoder<any> }>(
22
- mapping: O,
23
- ): Decoder<{ [K in keyof ObjectDecoderType<O>]: ObjectDecoderType<O>[K] }>;
24
- // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
25
- // Ditto (see above)
26
-
27
- export function inexact<O extends { [key: string]: Decoder<any> }>(
28
- mapping: O,
29
- ): Decoder<
30
- { [K in keyof ObjectDecoderType<O>]: ObjectDecoderType<O>[K] } & {
31
- [extra: string]: unknown;
32
- }
33
- >;
package/ts/optional.d.ts DELETED
@@ -1,5 +0,0 @@
1
- import { Decoder } from '../_types';
2
-
3
- export function optional<T>(decoder: Decoder<T>): Decoder<T | undefined>;
4
- export function nullable<T>(decoder: Decoder<T>): Decoder<T | null>;
5
- export function maybe<T>(decoder: Decoder<T>): Decoder<T | null | undefined>;
package/ts/result.d.ts DELETED
@@ -1,39 +0,0 @@
1
- export interface Ok<T> {
2
- readonly type: 'ok';
3
- readonly value: T;
4
- }
5
-
6
- export interface Err<E> {
7
- readonly type: 'err';
8
- readonly error: E;
9
- }
10
-
11
- export type Result<T, E> = Ok<T> | Err<E>;
12
-
13
- export function ok<T>(value: T): Ok<T>;
14
- export function err<E>(error: E): Err<E>;
15
- export function toString(result: Result<unknown, unknown>): string;
16
- export function isOk(result: Result<unknown, unknown>): boolean;
17
- export function isErr(result: Result<unknown, unknown>): boolean;
18
- export function withDefault<T>(result: Result<T, unknown>, defaultValue: T): T;
19
- export function value<T>(result: Result<T, unknown>): void | T;
20
- export function errValue<E>(result: Result<unknown, E>): void | E;
21
- export function unwrap<T>(result: Result<T, unknown>): T;
22
- export function expect<T>(result: Result<T, unknown>, message: string | Error): T;
23
- export function dispatch<T, E, O>(
24
- result: Result<T, E>,
25
- okCallback: (value: T) => O,
26
- errCallback: (error: E) => O,
27
- ): O;
28
- export function andThen<T, E, V>(
29
- result: Result<T, E>,
30
- callback: (value: T) => Result<V, E>,
31
- ): Result<V, E>;
32
- export function map<T, E, T2>(
33
- result: Result<T, E>,
34
- mapper: (value: T) => T2,
35
- ): Result<T2, E>;
36
- export function mapError<T, E, E2>(
37
- result: Result<T, E>,
38
- mapper: (error: E) => E2,
39
- ): Result<T, E2>;
package/ts/short.d.ts DELETED
@@ -1,3 +0,0 @@
1
- import { Annotation } from '../annotate';
2
-
3
- export function formatShort(ann: Annotation): string;
package/ts/string.d.ts DELETED
@@ -1,7 +0,0 @@
1
- import { Decoder } from '../_types';
2
-
3
- export const string: Decoder<string>;
4
- export const nonEmptyString: Decoder<string>;
5
- export function regex(regex: RegExp, msg: string): Decoder<string>;
6
- export const email: Decoder<string>;
7
- export function url(schemes?: readonly string[]): Decoder<string>;
package/ts/tuple.d.ts DELETED
@@ -1,30 +0,0 @@
1
- import { Decoder } from '../_types';
2
-
3
- export function tuple1<T1>(d1: Decoder<T1>): Decoder<[T1]>;
4
- export function tuple2<T1, T2>(d1: Decoder<T1>, d2: Decoder<T2>): Decoder<[T1, T2]>;
5
- export function tuple3<T1, T2, T3>(
6
- d1: Decoder<T1>,
7
- d2: Decoder<T2>,
8
- d3: Decoder<T3>,
9
- ): Decoder<[T1, T2, T3]>;
10
- export function tuple4<T1, T2, T3, T4>(
11
- d1: Decoder<T1>,
12
- d2: Decoder<T2>,
13
- d3: Decoder<T3>,
14
- d4: Decoder<T4>,
15
- ): Decoder<[T1, T2, T3, T4]>;
16
- export function tuple5<T1, T2, T3, T4, T5>(
17
- d1: Decoder<T1>,
18
- d2: Decoder<T2>,
19
- d3: Decoder<T3>,
20
- d4: Decoder<T4>,
21
- d5: Decoder<T5>,
22
- ): Decoder<[T1, T2, T3, T4, T5]>;
23
- export function tuple6<T1, T2, T3, T4, T5, T6>(
24
- d1: Decoder<T1>,
25
- d2: Decoder<T2>,
26
- d3: Decoder<T3>,
27
- d4: Decoder<T4>,
28
- d5: Decoder<T5>,
29
- d6: Decoder<T6>,
30
- ): Decoder<[T1, T2, T3, T4, T5, T6]>;