-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
/
index.js.flow
48 lines (40 loc) · 1.19 KB
/
index.js.flow
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
41
42
43
44
45
46
47
48
// @flow
// This file is generated automatically by `scripts/build_typings.js`. Please, don't change it.
type Interval = {
start: Date | string | number,
end: Date | string | number
}
type Options = {
weekStartsOn?: number,
additionalDigits?: 0 | 1 | 2,
locale?: Locale,
includeSeconds?: boolean,
addSuffix?: boolean,
unit?: 's' | 'm' | 'h' | 'd' | 'M' | 'Y',
partialMethod?: 'floor' | 'ceil' | 'round'
}
type Locale = {
distanceInWords?: {
localize?: Function
},
format?: {
formatters?: Object,
formattingTokensRegExp?: RegExp
},
parse?: {
units?: Object,
parsers?: Object,
parsingTokensRegExp?: RegExp
}
}
type CurriedFn1<A, R> = <A>(a: A) => R
type CurriedFn2<A, B, R> = <A>(a: A) => CurriedFn1<B, R>
| <A, B>(a: A, b: B) => R
type CurriedFn3<A, B, C, R> = <A>(a: A) => CurriedFn2<B, C, R>
| <A,B>(a: A, b: B) => CurriedFn1<C, R>
| <A,B,C>(a: A, b: B, c: C) => R
type CurriedFn4<A, B, C, D, R> = <A>(a: A) => CurriedFn3<B, C, D, R>
| <A,B>(a: A, b: B) => CurriedFn2<C, D, R>
| <A,B,C>(a: A, b: B, c: C) => CurriedFn1<D, R>
| <A,B,C,D>(a: A, b: B, c: C, d: D) => R
declare module.exports: CurriedFn2<Options, Date | string | number, boolean>