fuc-new/doc/node_modules/@vuepress/plugin-git/lib/client/composables/useLastUpdated.d.ts
hellcat 6adbc04d4b 1
2025-10-03 17:17:08 +08:00

45 lines
958 B
TypeScript

import type { ComputedRef, MaybeRefOrGetter } from 'vue';
/**
* Last updated information
*
* 最后更新信息
*/
export interface LastUpdated {
/**
* The date object of the last updated time
*
* 最后更新时间的日期对象
*/
date: Date;
/**
* The ISO string of the last updated time
*
* 最后更新时间的 ISO 字符串
*/
iso: string;
/**
* The formatted text of the last updated time
*
* 最后更新时间的格式化文本
*/
text: string;
/**
* The locale of the last updated time
*
* 最后更新时间的语言环境
*/
locale: string;
}
/**
* Last updated composable
*
* 最后更新组合式函数
*
* @param enabled - Whether to enable last updated
*
* 是否启用最后更新
*
* @default true
*/
export declare const useLastUpdated: (enabled?: MaybeRefOrGetter<boolean>) => ComputedRef<LastUpdated | null>;