@tamagui/use-debounce 1.48.10 → 1.49.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/src/index.ts +3 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/use-debounce",
3
- "version": "1.48.10",
3
+ "version": "1.49.0",
4
4
  "types": "./types/index.d.ts",
5
5
  "main": "dist/cjs",
6
6
  "module": "dist/esm",
@@ -26,7 +26,7 @@
26
26
  }
27
27
  },
28
28
  "devDependencies": {
29
- "@tamagui/build": "1.48.10",
29
+ "@tamagui/build": "1.49.0",
30
30
  "react": "^18.2.0"
31
31
  },
32
32
  "peerDependencies": {
package/src/index.ts CHANGED
@@ -7,7 +7,7 @@ type DebounceSettings = {
7
7
  export function debounce<A extends Function>(
8
8
  func: A,
9
9
  wait?: number,
10
- leading?: boolean,
10
+ leading?: boolean
11
11
  ): A & {
12
12
  cancel: () => void
13
13
  } {
@@ -45,12 +45,12 @@ export function useDebounce<
45
45
  A extends (...args: any) => any | undefined | null,
46
46
  DebouncedFn extends A & {
47
47
  cancel: () => void
48
- },
48
+ }
49
49
  >(
50
50
  fn: A,
51
51
  wait: number,
52
52
  options: DebounceSettings = defaultOpts,
53
- mountArgs: any[] = [],
53
+ mountArgs: any[] = []
54
54
  ): DebouncedFn {
55
55
  const dbEffect = useRef<DebouncedFn | null>(null)
56
56