lunisolar
Version:
专业农历库,支持公历阴历互转,支持各类黄历数据查询,如八字四柱、阴历、神煞宜忌、时辰吉凶、建除十二神、胎神占方、五行纳音等。支持自定义插件。
128 lines (126 loc) • 2.45 kB
TypeScript
interface LocaleData {
name: string
leap: string
lunarYearUnit: string
lunarHourUnit: string
bigMonth: string
smallMonth: string
weekdays: string[]
months: string[]
weekdaysShort: string[]
monthsShort: string[]
weekdaysMin: string[]
/**
* The lunar months name
*
* There are 12 items in the array,
*/
lunarMonths: string[]
/**
* The lunar months alias 陰歷月份別名
*
* There are 12 items in the array,
*/
lunarMonthsAlias: string[]
/**
* The lunar days name
*
* There are 30 items in the array,
*/
lunarDays: string[]
/**
* number (數字: like 〇一二三四五六七八九十)
*/
numerals: string[]
/**
* Constellation name (星座)
*/
constellationName: string[]
/**
* Solar term (二十四節氣)
*
* There are 24 items in the array,
*
* From Xiaohan to the end of winter solstice 始于小寒 終于冬至
*/
solarTerm: string[]
/**
* 季节
*/
seasonName: string[]
seasonShortName?: string[]
/**
* Heavenly stem 天干
*
* There are 10 items in the array,
*/
stems: string[]
/**
* Earthly Branches 地支
*
* There are 12 items in the array,
*/
branchs: string[]
/**
* Separator for combination of heavenly stem and earth branches 天干地支组合时的分隔符
*/
stemBranchSeparator: string
/**
* Chinese zodiac 十二生肖
*
* There are 12 items in the array,
*/
chineseZodiac: string[]
/**
* Five Elements 五行
*
* There are 5 items in the array,
*
* like (木 火 土 金 水)
*/
fiveElements: string[]
/**
* Eight Trigram 八卦
*
* There are 8 items in the array,
*
* like (坤 震 坎 兌 艮 離 巽 乾)
*/
eightTrigram: string[]
/**
* the phase of moon 月相
*/
moonPhase: {
朔: string
望: string
弦: string
晦: string
}
/**
* the directions 四方八隅,按九宮數字順序
*/
directions: string[]
/**
* The format of the date
*/
formats: {
LT: string
LTS: string
L: string
LL: string
LLL: string
LLLL: string
l: string
ll: string
lll: string
llll: string
}
/**
* The meridiem (午夜)
*/
meridiem: null | ((hour: number, minute: number, isLowercase?: boolean) => string)
[x: string]: any
}
declare interface LsrLocale extends Partial<LocaleData> {
name: string
}