UNPKG

@rr0/time

Version:
51 lines 1.66 kB
/** * @template Y extends Level1Component = Level1Year * @template MM extends Level1Component = Level1Month * @template D extends Level1Component = Level1Day * @template H extends Level1Component = Level1Hour * @template M extends Level1Component = Level1Minute * @template S extends Level1Component = Level1Second * @template Z extends Level1Component = Level1Timeshift */ export class Level1Factory<Y, MM, D, H, M, S, Z> extends LevelFactory<any, any, any, any, any, any, any> { /** * @param {number} value * @return Y */ newYear(value: number): Level1Year; /** * @param {number} value * @return MM */ newMonth(value: number): Level1Month; /** * @param {number} value * @return D */ newDay(value: number): Level1Day; /** * @param {number} value * @return H */ newHour(value: number): Level1Hour; /** * @param {number} value * @return M */ newMinute(value: number): Level1Minute; /** * @param {number} value * @return S */ newSecond(value: number): Level1Second; } export const level1Factory: Level1Factory<any, any, any, any, any, any, any>; export const level1DurationFactory: Level1Factory<any, any, any, any, any, any, any>; import { LevelFactory } from "../LevelFactory.mjs"; import { Level1Year } from "./year/index.mjs"; import { Level1Month } from "./month/index.mjs"; import { Level1Day } from "./day/index.mjs"; import { Level1Hour } from "./hour/index.mjs"; import { Level1Minute } from "./minute/index.mjs"; import { Level1Second } from "./second/index.mjs"; //# sourceMappingURL=Level1Factory.d.mts.map