📄 useInterval¶
📊 Analysis Summary¶
| Metric | Count |
|---|---|
| 🔧 Functions | 3 |
| 📦 Imports | 6 |
| 📐 Interfaces | 2 |
| 📑 Type Aliases | 1 |
📚 Table of Contents¶
🛠️ File Location:¶
📂 packages/shared/useInterval/index.ts
📦 Imports¶
| Name | Source |
|---|---|
MaybeRefOrGetter |
vue |
ShallowRef |
vue |
Pausable |
../utils |
shallowReadonly |
vue |
shallowRef |
vue |
useIntervalFn |
../useIntervalFn |
Functions¶
useInterval(interval: MaybeRefOrGetter<number>, options: UseIntervalOptions<false>): Readonly<ShallowRef<number>>¶
Reactive counter increases on every interval
Parameters:
intervalany: No descriptionoptionsany: No description
See: https://vueuse.org/useInterval
Raw JSDoc
Code
Internal helpers¶
Declared inside another function in this file.
update(): any¶
Returns: any
reset(): void¶
Returns: void
Interfaces¶
UseIntervalOptions<Controls extends boolean>¶
Interface Code
Properties¶
| Name | Type | Optional | Description |
|---|---|---|---|
controls |
Controls |
✓ | not shown |
immediate |
boolean |
✓ | not shown |
callback |
(count: number) => void |
✓ | not shown |
UseIntervalControls¶
Interface Code
Properties¶
| Name | Type | Optional | Description |
|---|---|---|---|
counter |
ShallowRef<number> |
✗ | not shown |
reset |
() => void |
✗ | not shown |
Type Aliases¶
UseIntervalReturn¶
Generated by Syntax Scribe