UNPKG

@rr0/time

Version:
51 lines 1.66 kB
/** * @template Y extends Level2Component = Level2Year * @template MM extends Level2Component = Level2Month * @template D extends Level2Component = Level2Day * @template H extends Level2Component = Level2Hour * @template M extends Level2Component = Level2Minute * @template S extends Level2Component = Level2Second * @template Z extends Level2Component = Level2Timeshift */ export class Level2Factory<Y, MM, D, H, M, S, Z> extends LevelFactory<any, any, any, any, any, any, any> { /** * @param {number} value * @return Y */ newYear(value: number): Level2Year; /** * @param {number} value * @return MM */ newMonth(value: number): Level2Month; /** * @param {number} value * @return D */ newDay(value: number): Level2Day; /** * @param {number} value * @return H */ newHour(value: number): Level2Hour; /** * @param {number} value * @return M */ newMinute(value: number): Level2Minute; /** * @param {number} value * @return S */ newSecond(value: number): Level2Second; } export const level2Factory: Level2Factory<any, any, any, any, any, any, any>; export const level2DurationFactory: Level2Factory<any, any, any, any, any, any, any>; import { LevelFactory } from "../LevelFactory.mjs"; import { Level2Year } from "./year/index.mjs"; import { Level2Month } from "./month/index.mjs"; import { Level2Day } from "./day/index.mjs"; import { Level2Hour } from "./hour/index.mjs"; import { Level2Minute } from "./minute/index.mjs"; import { Level2Second } from "./second/index.mjs"; //# sourceMappingURL=Level2Factory.d.mts.map