Skip to content

Commit

Permalink
Add children type for ClickOutsideProviderProps (#5)
Browse files Browse the repository at this point in the history
* Add children type for ClickOutsideProviderProps

* Update src/Provider.tsx

Co-authored-by: Jakub Grzywacz <[email protected]>

---------

Co-authored-by: Jakub Grzywacz <[email protected]>
  • Loading branch information
mattgle and jakex7 authored May 17, 2023
1 parent fcbbb2a commit f41cda1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { isInRange } from './utils/helpers';
type ClickOutsideProviderProps = {
activateOnSwipe?: boolean;
swipeThreshold?: number;
children: React.ReactNode;
};

let touchX: number | undefined;
Expand Down

0 comments on commit f41cda1

Please sign in to comment.