⬅️ Back to Table of Contents
📄 useTimeAgo/component
📊 Analysis Summary
| Metric |
Count |
| 📦 Imports |
8 |
| 🟢 Vue Composition API |
1 |
| 📐 Interfaces |
2 |
📚 Table of Contents
🛠️ File Location:
📂 packages/core/useTimeAgo/component.ts
📦 Imports
| Name |
Source |
UseTimeAgoOptions |
@vueuse/core |
UseTimeAgoReturn |
@vueuse/core |
MaybeRef |
vue |
Reactive |
vue |
SlotsType |
vue |
useTimeAgo |
@vueuse/core |
defineComponent |
vue |
reactive |
vue |
Vue Composition API
| Name |
Type |
Reactive Variables |
Composables |
reactive |
reactive |
none |
none |
Interfaces
UseTimeAgoProps
Interface Code
export interface UseTimeAgoProps extends Omit<UseTimeAgoOptions<true>, 'controls'> {
time: MaybeRef<Date | number | string>
}
Properties
| Name |
Type |
Optional |
Description |
time |
MaybeRef<Date \| number \| string> |
✗ |
not shown |
UseTimeAgoSlots
Interface Code
interface UseTimeAgoSlots {
default: (data: Reactive<UseTimeAgoReturn<true>>) => any
}
Properties
| Name |
Type |
Optional |
Description |
default |
(data: Reactive<UseTimeAgoReturn<true>>) => any |
✗ |
not shown |
Generated by Syntax Scribe