@tamagui/use-debounce 1.0.1-beta.166 → 1.0.1-beta.168
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.
- package/package.json +2 -2
- package/types/index.d.ts +4 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/use-debounce",
|
|
3
|
-
"version": "1.0.1-beta.
|
|
3
|
+
"version": "1.0.1-beta.168",
|
|
4
4
|
"types": "./types/index.d.ts",
|
|
5
5
|
"main": "dist/cjs",
|
|
6
6
|
"module": "dist/esm",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"clean:build": "tamagui-build clean:build"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@tamagui/build": "^1.0.1-beta.
|
|
22
|
+
"@tamagui/build": "^1.0.1-beta.168",
|
|
23
23
|
"react": "*"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
package/types/index.d.ts
CHANGED
|
@@ -7,6 +7,10 @@ export declare function debounce<A extends Function>(func: A, wait?: number, lea
|
|
|
7
7
|
export declare function useDebounce<A extends (...args: any) => any | undefined | null, DebouncedFn extends A & {
|
|
8
8
|
cancel: () => void;
|
|
9
9
|
}>(fn: A, wait: number, options?: DebounceSettings, mountArgs?: any[]): DebouncedFn;
|
|
10
|
+
/**
|
|
11
|
+
* Returns a value once it stops changing after "amt" time.
|
|
12
|
+
* Note: you may need to memo or this will keep re-rendering
|
|
13
|
+
*/
|
|
10
14
|
export declare function useDebounceValue<A>(val: A, amt?: number): A;
|
|
11
15
|
export {};
|
|
12
16
|
//# sourceMappingURL=index.d.ts.map
|