@valo/cache
Version:
Cache implementation using IndexedDB
12 lines (11 loc) • 500 B
TypeScript
import { DateInterval } from "../enums";
export declare class DateHelper {
/**
* Adds a value to a date
*
* @param date The date to which we will add units, done in local time
* @param interval The name of the interval to add, one of: ['year', 'quarter', 'month', 'week', 'day', 'hour', 'minute', 'second']
* @param units The amount to add to date of the given interval
*/
static dateAdd(date: string, interval: DateInterval, units: number): Date | undefined;
}