Skip to content

Commit

Permalink
fix(useSwipe)!: rename type SwipeOptions to UseSwipeOptions and `…
Browse files Browse the repository at this point in the history
…SwipeReturn` to `UseSwipeReturn` (#1891)
  • Loading branch information
okxiaoliang4 committed Jul 13, 2022
1 parent 42516eb commit d7052ab
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/core/useSwipe/index.ts
Expand Up @@ -15,7 +15,7 @@ export enum SwipeDirection {
NONE = 'NONE',
}

export interface SwipeOptions extends ConfigurableWindow {
export interface UseSwipeOptions extends ConfigurableWindow {
/**
* Register events as passive
*
Expand Down Expand Up @@ -44,7 +44,7 @@ export interface SwipeOptions extends ConfigurableWindow {
onSwipeEnd?: (e: TouchEvent, direction: SwipeDirection) => void
}

export interface SwipeReturn {
export interface UseSwipeReturn {
isPassiveEventSupported: boolean
isSwiping: Ref<boolean>
direction: ComputedRef<SwipeDirection | null>
Expand All @@ -64,8 +64,8 @@ export interface SwipeReturn {
*/
export function useSwipe(
target: MaybeComputedRef<EventTarget | null | undefined>,
options: SwipeOptions = {},
): SwipeReturn {
options: UseSwipeOptions = {},
): UseSwipeReturn {
const {
threshold = 50,
onSwipe,
Expand Down

0 comments on commit d7052ab

Please sign in to comment.