Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

index.js.flow 1.3 KiB

il y a 3 ans
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. // @flow
  2. // This file is generated automatically by `scripts/build/typings.js`. Please, don't change it.
  3. type Interval = {
  4. start: Date | number,
  5. end: Date | number
  6. }
  7. type Options = {
  8. weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6,
  9. firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7,
  10. additionalDigits?: 0 | 1 | 2,
  11. locale?: Locale,
  12. includeSeconds?: boolean,
  13. addSuffix?: boolean,
  14. unit?: 'second' | 'minute' | 'hour' | 'day' | 'month' | 'year',
  15. roundingMethod?: 'floor' | 'ceil' | 'round',
  16. awareOfUnicodeTokens?: boolean,
  17. step?: number
  18. }
  19. type Locale = {
  20. formatDistance: Function,
  21. formatRelative: Function,
  22. localize: {
  23. ordinalNumber: Function,
  24. era: Function,
  25. quarter: Function,
  26. month: Function,
  27. day: Function,
  28. dayPeriod: Function
  29. },
  30. formatLong: Object,
  31. date: Function,
  32. time: Function,
  33. dateTime: Function,
  34. match: {
  35. ordinalNumber: Function,
  36. era: Function,
  37. quarter: Function,
  38. month: Function,
  39. day: Function,
  40. dayPeriod: Function
  41. },
  42. options?: {
  43. weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6,
  44. firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7
  45. }
  46. }
  47. type CurriedFn1<A, R> = <A>(a: A) => R
  48. type CurriedFn2<A, B, R> = <A>(
  49. a: A
  50. ) => CurriedFn1<B, R> | (<A, B>(a: A, b: B) => R)
  51. declare module.exports: CurriedFn2<Options, any, boolean>