-
Notifications
You must be signed in to change notification settings - Fork 7
/
index.js
40 lines (37 loc) · 827 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/* @flow */
declare export function omit<
O, P, A, B, C, D, E
>(O, P): $Exact<$Call<
& (([A]) => {
...$Exact<$ObjMapi<O,
& (<K: A, V>(K, V) => void)
& (<K, V>(K, V) => V)
>>,
})
& (([A, B]) => {
...$Exact<$ObjMapi<O,
& (<K: A | B, V>(K, V) => void)
& (<K, V>(K, V) => V)
>>,
})
& (([A, B, C]) => {
...$Exact<$ObjMapi<O,
& (<K: A | B | C, V>(K, V) => void)
& (<K, V>(K, V) => V)
>>,
})
& (([A, B, C, D]) => {
...$Exact<$ObjMapi<O,
& (<K: A | B | C | D, V>(K, V) => void)
& (<K, V>(K, V) => V)
>>,
})
& (([A, B, C, D, E]) => {
...$Exact<$ObjMapi<O,
& (<K: A | B | C | D | E, V>(K, V) => void)
& (<K, V>(K, V) => V)
>>,
})
, P>>
export type _Omit = typeof omit
export type Omit<O, P> = $Call<_Omit, O, P>