( date: DateArg<DateType>, amount: number, options?: AddMillisecondsOptions<ResultDate> | undefined, )
| 31 | * //=> Thu Jul 10 2014 12:45:30.750 |
| 32 | */ |
| 33 | export function addMilliseconds< |
| 34 | DateType extends Date, |
| 35 | ResultDate extends Date = DateType, |
| 36 | >( |
| 37 | date: DateArg<DateType>, |
| 38 | amount: number, |
| 39 | options?: AddMillisecondsOptions<ResultDate> | undefined, |
| 40 | ): ResultDate { |
| 41 | return constructFrom(options?.in || date, +toDate(date) + amount); |
| 42 | } |
no test coverage detected