c4ca8a87fa
- sign页面与签约宝精简版对齐:查看合同入口、AI积分区块(合同审查/我的报告/积分充值)
- 新增pages/ai/{points,review,reports}三个页面(与签约宝精简版一致)
- pages.json注册AI页面路由
25 lines
586 B
TypeScript
25 lines
586 B
TypeScript
import { PluginFunc, ConfigType } from 'dayjs'
|
|
|
|
declare interface RelativeTimeThreshold {
|
|
l: string
|
|
r?: number
|
|
d?: string
|
|
}
|
|
|
|
declare interface RelativeTimeOptions {
|
|
rounding?: (num: number) => number
|
|
thresholds?: RelativeTimeThreshold[]
|
|
}
|
|
|
|
declare const plugin: PluginFunc<RelativeTimeOptions>
|
|
export = plugin
|
|
|
|
declare module 'dayjs' {
|
|
interface Dayjs {
|
|
fromNow(withoutSuffix?: boolean): string
|
|
from(compared: ConfigType, withoutSuffix?: boolean): string
|
|
toNow(withoutSuffix?: boolean): string
|
|
to(compared: ConfigType, withoutSuffix?: boolean): string
|
|
}
|
|
}
|