Skip to content

Commit 7fb7a05

Browse files
fix(types): allow async functions in useDebounceFn and useThrottleFn (#5131)
1 parent 7a87886 commit 7fb7a05

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/shared/utils/filters.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { isRef, readonly, toValue } from 'vue'
44
import { toRef } from '../toRef'
55
import { noop } from './is'
66

7-
export type FunctionArgs<Args extends any[] = any[], Return = void> = (...args: Args) => Return
7+
export type FunctionArgs<Args extends any[] = any[], Return = unknown> = (...args: Args) => Return
88

99
export interface FunctionWrapperOptions<Args extends any[] = any[], This = any> {
1010
fn: FunctionArgs<Args, This>

0 commit comments

Comments
 (0)