UNPKG

vexip-ui

Version:

A Vue 3 UI library, Highly customizability, full TypeScript, performance pretty good

14 lines (13 loc) 530 B
import { Ref } from 'vue'; export interface TimeAgoRecord { datetime: Date; timeAgo: Ref<string>; locale: Ref<Record<string, string>>; wordSpace: Ref<boolean>; interval: false | number; updated: number; } export declare function getId(): number; export declare function subscribe(id: number, record: TimeAgoRecord): void; export declare function unsubscribe(id: number): void; export declare function computeTimeAgo(date: Date, current: number, locale: Record<string, string>, wordSpace: boolean): string;