UNPKG

lunar-typescript-optimize

Version:

A TypeScript library for Solar and Chinese Lunar calendar calculations, with optimized build and browser compatibility

25 lines (24 loc) 410 B
export class TaoFestival { _name; _remark; constructor(name, remark = "") { this._name = name; this._remark = remark; } getName() { return this._name; } getRemark() { return this._remark; } toString() { return this._name; } toFullString() { const l = [this._name]; if (this._remark) { l.push("[" + this._remark + "]"); } return l.join(""); } }