-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
29c6617
commit 5bd2ae6
Showing
13 changed files
with
410 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. | ||
|
||
import { isMatch } from 'date-fns/fp' | ||
export default isMatch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. | ||
|
||
import fn from '../../isMatch/index.js' | ||
import convertToFP from '../_lib/convertToFP/index.js' | ||
|
||
var isMatch = convertToFP(fn, 2) | ||
|
||
export default isMatch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
// @flow | ||
// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. | ||
|
||
export type Interval = { | ||
start: Date | number, | ||
end: Date | number | ||
} | ||
|
||
export type Locale = { | ||
code?: string, | ||
formatDistance?: (...args: Array<any>) => any, | ||
formatRelative?: (...args: Array<any>) => any, | ||
localize?: { | ||
ordinalNumber: (...args: Array<any>) => any, | ||
era: (...args: Array<any>) => any, | ||
quarter: (...args: Array<any>) => any, | ||
month: (...args: Array<any>) => any, | ||
day: (...args: Array<any>) => any, | ||
dayPeriod: (...args: Array<any>) => any | ||
}, | ||
formatLong?: { | ||
date: (...args: Array<any>) => any, | ||
time: (...args: Array<any>) => any, | ||
dateTime: (...args: Array<any>) => any | ||
}, | ||
match?: { | ||
ordinalNumber: (...args: Array<any>) => any, | ||
era: (...args: Array<any>) => any, | ||
quarter: (...args: Array<any>) => any, | ||
month: (...args: Array<any>) => any, | ||
day: (...args: Array<any>) => any, | ||
dayPeriod: (...args: Array<any>) => any | ||
}, | ||
options?: { | ||
weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, | ||
firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | ||
} | ||
} | ||
|
||
export type Duration = { | ||
years?: number, | ||
months?: number, | ||
weeks?: number, | ||
days?: number, | ||
hours?: number, | ||
minutes?: number, | ||
seconds?: number | ||
} | ||
|
||
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) | ||
|
||
declare module.exports: CurriedFn2<string, string, boolean> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. | ||
|
||
import { isMatchWithOptions } from 'date-fns/fp' | ||
export default isMatchWithOptions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. | ||
|
||
import fn from '../../isMatch/index.js' | ||
import convertToFP from '../_lib/convertToFP/index.js' | ||
|
||
var isMatchWithOptions = convertToFP(fn, 3) | ||
|
||
export default isMatchWithOptions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
// @flow | ||
// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. | ||
|
||
export type Interval = { | ||
start: Date | number, | ||
end: Date | number | ||
} | ||
|
||
export type Locale = { | ||
code?: string, | ||
formatDistance?: (...args: Array<any>) => any, | ||
formatRelative?: (...args: Array<any>) => any, | ||
localize?: { | ||
ordinalNumber: (...args: Array<any>) => any, | ||
era: (...args: Array<any>) => any, | ||
quarter: (...args: Array<any>) => any, | ||
month: (...args: Array<any>) => any, | ||
day: (...args: Array<any>) => any, | ||
dayPeriod: (...args: Array<any>) => any | ||
}, | ||
formatLong?: { | ||
date: (...args: Array<any>) => any, | ||
time: (...args: Array<any>) => any, | ||
dateTime: (...args: Array<any>) => any | ||
}, | ||
match?: { | ||
ordinalNumber: (...args: Array<any>) => any, | ||
era: (...args: Array<any>) => any, | ||
quarter: (...args: Array<any>) => any, | ||
month: (...args: Array<any>) => any, | ||
day: (...args: Array<any>) => any, | ||
dayPeriod: (...args: Array<any>) => any | ||
}, | ||
options?: { | ||
weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, | ||
firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | ||
} | ||
} | ||
|
||
export type Duration = { | ||
years?: number, | ||
months?: number, | ||
weeks?: number, | ||
days?: number, | ||
hours?: number, | ||
minutes?: number, | ||
seconds?: number | ||
} | ||
|
||
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)) | ||
|
||
declare module.exports: CurriedFn3< | ||
{ | ||
useAdditionalDayOfYearTokens?: boolean, | ||
useAdditionalWeekYearTokens?: boolean, | ||
firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, | ||
weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, | ||
locale?: Locale | ||
}, | ||
string, | ||
string, | ||
boolean | ||
> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. | ||
|
||
import { isMatch } from 'date-fns' | ||
export default isMatch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
// @flow | ||
// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. | ||
|
||
export type Interval = { | ||
start: Date | number, | ||
end: Date | number | ||
} | ||
|
||
export type Locale = { | ||
code?: string, | ||
formatDistance?: (...args: Array<any>) => any, | ||
formatRelative?: (...args: Array<any>) => any, | ||
localize?: { | ||
ordinalNumber: (...args: Array<any>) => any, | ||
era: (...args: Array<any>) => any, | ||
quarter: (...args: Array<any>) => any, | ||
month: (...args: Array<any>) => any, | ||
day: (...args: Array<any>) => any, | ||
dayPeriod: (...args: Array<any>) => any | ||
}, | ||
formatLong?: { | ||
date: (...args: Array<any>) => any, | ||
time: (...args: Array<any>) => any, | ||
dateTime: (...args: Array<any>) => any | ||
}, | ||
match?: { | ||
ordinalNumber: (...args: Array<any>) => any, | ||
era: (...args: Array<any>) => any, | ||
quarter: (...args: Array<any>) => any, | ||
month: (...args: Array<any>) => any, | ||
day: (...args: Array<any>) => any, | ||
dayPeriod: (...args: Array<any>) => any | ||
}, | ||
options?: { | ||
weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, | ||
firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | ||
} | ||
} | ||
|
||
export type Duration = { | ||
years?: number, | ||
months?: number, | ||
weeks?: number, | ||
days?: number, | ||
hours?: number, | ||
minutes?: number, | ||
seconds?: number | ||
} | ||
|
||
declare module.exports: ( | ||
dateString: string, | ||
formatString: string, | ||
options?: { | ||
locale?: Locale, | ||
weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, | ||
firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, | ||
useAdditionalWeekYearTokens?: boolean, | ||
useAdditionalDayOfYearTokens?: boolean | ||
} | ||
) => boolean |
Oops, something went wrong.