@hyperix/hooks 0.1.4 → 0.1.5
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/dist/index.d.ts +4 -3
- package/dist/index.js +1 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { UseSubscribeState } from '@outofgas/react-stream';
|
|
2
2
|
|
|
3
3
|
declare function useDebouncedValue<T>(value: T, delayMs?: number): T;
|
|
4
4
|
|
|
@@ -18,10 +18,11 @@ type UseL2BookOptions = {
|
|
|
18
18
|
depth?: number;
|
|
19
19
|
nSigFigs?: number;
|
|
20
20
|
};
|
|
21
|
+
declare const EMPTY_L2_BOOK: L2Book;
|
|
21
22
|
declare function calcOrderbookLevels(price: number): {
|
|
22
23
|
nSigFigs: number;
|
|
23
24
|
tick: string;
|
|
24
25
|
}[];
|
|
25
|
-
declare const useL2Book: (coin: string, options?: UseL2BookOptions) =>
|
|
26
|
+
declare const useL2Book: (coin: string, options?: UseL2BookOptions) => UseSubscribeState<L2Book>;
|
|
26
27
|
|
|
27
|
-
export { type L2Book, type L2BookLevel, type UseL2BookOptions, calcOrderbookLevels, useDebouncedValue, useL2Book };
|
|
28
|
+
export { EMPTY_L2_BOOK, type L2Book, type L2BookLevel, type UseL2BookOptions, calcOrderbookLevels, useDebouncedValue, useL2Book };
|
package/dist/index.js
CHANGED