@rr0/time
Version:
EDTF parsing
19 lines • 744 B
text/typescript
export class Level2Year extends Level2Component {
/**
* @param {string} str The EDTF string.
* @param [unit]
* @return {Level2Year | {start: Level2Year, end: Level2Year}}
*/
static fromString(str: string, unit?: import("../../calendar/index.mjs").CalendarUnit): Level2Year | {
start: Level2Year;
end: Level2Year;
};
/**
* @param {Level2ComponentSpec} spec
* @param [unit] The year unit
*/
constructor(spec: Level2ComponentSpec, unit?: import("../../calendar/index.mjs").CalendarUnit);
}
import { Level2Component } from "../component/Level2Component.mjs";
import type { Level2ComponentSpec } from "../component/Level2Component.mjs";
//# sourceMappingURL=Level2Year.d.mts.map