index.js.flow 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. // @flow
  2. // This file is generated automatically by `scripts/build/typings.js`. Please, don't change it.
  3. export type Interval = {
  4. start: Date | number,
  5. end: Date | number,
  6. }
  7. export type Locale = {
  8. code?: string,
  9. formatDistance?: (...args: Array<any>) => any,
  10. formatRelative?: (...args: Array<any>) => any,
  11. localize?: {
  12. ordinalNumber: (...args: Array<any>) => any,
  13. era: (...args: Array<any>) => any,
  14. quarter: (...args: Array<any>) => any,
  15. month: (...args: Array<any>) => any,
  16. day: (...args: Array<any>) => any,
  17. dayPeriod: (...args: Array<any>) => any,
  18. },
  19. formatLong?: {
  20. date: (...args: Array<any>) => any,
  21. time: (...args: Array<any>) => any,
  22. dateTime: (...args: Array<any>) => any,
  23. },
  24. match?: {
  25. ordinalNumber: (...args: Array<any>) => any,
  26. era: (...args: Array<any>) => any,
  27. quarter: (...args: Array<any>) => any,
  28. month: (...args: Array<any>) => any,
  29. day: (...args: Array<any>) => any,
  30. dayPeriod: (...args: Array<any>) => any,
  31. },
  32. options?: {
  33. weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6,
  34. firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7,
  35. },
  36. }
  37. export type Duration = {
  38. years?: number,
  39. months?: number,
  40. weeks?: number,
  41. days?: number,
  42. hours?: number,
  43. minutes?: number,
  44. seconds?: number,
  45. }
  46. export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6
  47. declare module.exports: (duration: Duration) => string