Closed eweitnauer closed 5 years ago
For example, the method add is implemented as
add
add(other, options = { adjacent: false }) { ... }
but the type declaration is add(other: DateRange): ?DateRange; for flow and add(other: DateRange): DateRange | undefined; for typescript – both missing the options parameter.
add(other: DateRange): ?DateRange;
add(other: DateRange): DateRange | undefined;
options
Maybe just use the declarations from @types/moment-range?
Also typings don't allow calling moment.range() w/o arguments
moment.range()
This is fixed in4.0.2 and will be published on Monday :)
4.0.2
For example, the method
add
is implemented asbut the type declaration is
add(other: DateRange): ?DateRange;
for flow andadd(other: DateRange): DateRange | undefined;
for typescript – both missing theoptions
parameter.Maybe just use the declarations from @types/moment-range?