UNPKG
lunar-lite
Version:
latest (0.2.8)
0.2.8
0.2.7
0.2.6
0.2.5
0.2.4
0.2.3
0.2.2
0.2.1
0.2.0
0.1.2
0.1.1
0.1.0
0.0.3
0.0.2
0.0.1
精简版的农历和阳历日期转换库。
SylarLong/lunar-lite
lunar-lite
/
lib
/
utils.d.ts
9 lines
(8 loc)
•
357 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
/** * 用于处理索引,将索引锁定在 0~max 范围内 * *
@param
index 当前索引 *
@param
max 最大循环数,默认为12【因为12用得最多,宫位数量以及十二地支数量都为12,所以将12作为默认值】 *
@returns
{
number
} 处理后的索引 */
export
declare
const
fixIndex
:
(
index
:
number
,
max
?:
number
) =>
number
;