Skip to content

Commit 017fcdc

Browse files
committed
fix(types): support getter
1 parent cf30e68 commit 017fcdc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

plugins/auto-refetch/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*/
88

99
import type { PiniaColadaPlugin, UseQueryEntry, UseQueryOptions } from '@pinia/colada'
10-
import { toValue } from 'vue'
10+
import { toValue, type MaybeRefOrGetter } from 'vue'
1111

1212
/**
1313
* Options for the auto-refetch plugin.
@@ -17,7 +17,7 @@ export interface PiniaColadaAutoRefetchOptions {
1717
* Whether to enable auto refresh by default.
1818
* @default false
1919
*/
20-
autoRefetch?: boolean
20+
autoRefetch?: MaybeRefOrGetter<boolean>
2121
}
2222

2323
/**

0 commit comments

Comments
 (0)