1 |
|
2 |
|
3 |
|
4 | export type Fn0<T> = () => T;
|
5 |
|
6 |
|
7 |
|
8 | export type Fn<A, B> = (a: A) => B;
|
9 |
|
10 |
|
11 |
|
12 | export type Fn2<A, B, C> = (a: A, b: B) => C;
|
13 |
|
14 |
|
15 |
|
16 | export type Fn3<A, B, C, D> = (a: A, b: B, c: C) => D;
|
17 |
|
18 |
|
19 |
|
20 | export type Fn4<A, B, C, D, E> = (a: A, b: B, c: C, d: D) => E;
|
21 |
|
22 |
|
23 |
|
24 | export type Fn5<A, B, C, D, E, F> = (a: A, b: B, c: C, d: D, e: E) => F;
|
25 |
|
26 |
|
27 |
|
28 | export type Fn6<A, B, C, D, E, F, G> = (a: A, b: B, c: C, d: D, e: E, f: F) => G;
|
29 |
|
30 |
|
31 |
|
32 | export type Fn7<A, B, C, D, E, F, G, H> = (a: A, b: B, c: C, d: D, e: E, f: F, g: G) => H;
|
33 |
|
34 |
|
35 |
|
36 | export type Fn8<A, B, C, D, E, F, G, H, I> = (a: A, b: B, c: C, d: D, e: E, f: F, g: G, h: H) => I;
|
37 |
|
38 |
|
39 |
|
40 | export type Fn9<A, B, C, D, E, F, G, H, I, J> = (a: A, b: B, c: C, d: D, e: E, f: F, g: G, h: H, i: I) => J;
|
41 |
|
42 |
|
43 |
|
44 | export type Fn10<A, B, C, D, E, F, G, H, I, J, K> = (a: A, b: B, c: C, d: D, e: E, f: F, g: G, h: H, i: I, j: J) => K;
|
45 | export type FnO<A, B> = (a: A, ...args: any[]) => B;
|
46 | export type FnO2<A, B, C> = (a: A, b: B, ...args: any[]) => C;
|
47 | export type FnO3<A, B, C, D> = (a: A, b: B, c: C, ...args: any[]) => D;
|
48 | export type FnO4<A, B, C, D, E> = (a: A, b: B, c: C, d: D, ...args: any[]) => E;
|
49 | export type FnO5<A, B, C, D, E, F> = (a: A, b: B, c: C, d: D, e: E, ...args: any[]) => F;
|
50 | export type FnO6<A, B, C, D, E, F, G> = (a: A, b: B, c: C, d: D, e: E, f: F, ...args: any[]) => G;
|
51 | export type FnO7<A, B, C, D, E, F, G, H> = (a: A, b: B, c: C, d: D, e: E, f: F, g: G, ...args: any[]) => H;
|
52 | export type FnO8<A, B, C, D, E, F, G, H, I> = (a: A, b: B, c: C, d: D, e: E, f: F, g: G, h: H, ...args: any[]) => I;
|
53 | export type FnO9<A, B, C, D, E, F, G, H, I, J> = (a: A, b: B, c: C, d: D, e: E, f: F, g: G, h: H, i: I, ...args: any[]) => J;
|
54 | export type FnO10<A, B, C, D, E, F, G, H, I, J, K> = (a: A, b: B, c: C, d: D, e: E, f: F, g: G, h: H, i: I, j: J, ...args: any[]) => K;
|
55 |
|
56 |
|
57 |
|
58 | export type FnAny<T> = (...args: any[]) => T;
|
59 |
|
60 |
|
61 |
|
62 | export type FnAnyT<A, B> = (...args: A[]) => B;
|
63 |
|
64 |
|
65 |
|
66 |
|
67 | export type FnU<A, B = A> = Fn<A, B>;
|
68 |
|
69 |
|
70 |
|
71 |
|
72 | export type FnU2<A, B = A> = Fn2<A, A, B>;
|
73 |
|
74 |
|
75 |
|
76 |
|
77 | export type FnU3<A, B = A> = Fn3<A, A, A, B>;
|
78 |
|
79 |
|
80 |
|
81 |
|
82 | export type FnU4<A, B = A> = Fn4<A, A, A, A, B>;
|
83 |
|
84 |
|
85 |
|
86 |
|
87 | export type FnU5<A, B = A> = Fn5<A, A, A, A, A, B>;
|
88 |
|
89 |
|
90 |
|
91 |
|
92 | export type FnU6<A, B = A> = Fn6<A, A, A, A, A, A, B>;
|
93 |
|
94 |
|
95 |
|
96 |
|
97 | export type FnU7<A, B = A> = Fn7<A, A, A, A, A, A, A, B>;
|
98 |
|
99 |
|
100 |
|
101 |
|
102 | export type FnU8<A, B = A> = Fn8<A, A, A, A, A, A, A, A, B>;
|
103 |
|
104 |
|
105 |
|
106 |
|
107 | export type FnU9<A, B = A> = Fn9<A, A, A, A, A, A, A, A, A, B>;
|
108 |
|
109 |
|
110 |
|
111 |
|
112 | export type FnU10<A, B = A> = Fn10<A, A, A, A, A, A, A, A, A, A, B>;
|
113 | export type FnN = FnU<number>;
|
114 | export type FnN2 = FnU2<number>;
|
115 | export type FnN3 = FnU3<number>;
|
116 | export type FnN4 = FnU4<number>;
|
117 | export type FnN5 = FnU5<number>;
|
118 | export type FnN6 = FnU6<number>;
|
119 | export type FnN7 = FnU7<number>;
|
120 | export type FnN8 = FnU8<number>;
|
121 | export type FnN9 = FnU9<number>;
|
122 | export type FnN10 = FnU10<number>;
|
123 |
|
124 |
|
125 |
|
126 |
|
127 |
|
128 | export declare const identity: <T>(x: T) => T;
|
129 |
|
130 |
|
131 |
|
132 | export declare const always: () => boolean;
|
133 |
|
134 |
|
135 |
|
136 | export declare const never: () => boolean;
|
137 |
|
\ | No newline at end of file |