( date: DateArg<DateType>, amount: number, options?: SubDaysOptions<ResultDate> | undefined, )
| 28 | * //=> Fri Aug 22 2014 00:00:00 |
| 29 | */ |
| 30 | export function subDays< |
| 31 | DateType extends Date, |
| 32 | ResultDate extends Date = DateType, |
| 33 | >( |
| 34 | date: DateArg<DateType>, |
| 35 | amount: number, |
| 36 | options?: SubDaysOptions<ResultDate> | undefined, |
| 37 | ): ResultDate { |
| 38 | return addDays(date, -amount, options); |
| 39 | } |
no test coverage detected