mirror of
https://git.fightbot.fun/hxuanyu/BingPaper.git
synced 2026-02-15 16:59:32 +08:00
大图查看页面增加日历展示,支持显示节假日信息,提高实用性
This commit is contained in:
20
webapp/src/types/lunar-javascript.d.ts
vendored
Normal file
20
webapp/src/types/lunar-javascript.d.ts
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
declare module 'lunar-javascript' {
|
||||
export class Solar {
|
||||
static fromDate(date: Date): Solar
|
||||
getLunar(): Lunar
|
||||
getFestivals(): string[]
|
||||
}
|
||||
|
||||
export class Lunar {
|
||||
getYearInChinese(): string
|
||||
getMonthInChinese(): string
|
||||
getDayInChinese(): string
|
||||
getDay(): number
|
||||
getJieQi(): string
|
||||
getFestivals(): string[]
|
||||
}
|
||||
|
||||
export class HolidayUtil {
|
||||
// Add methods if needed
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user