UNPKG
@overse/ui-extensions-utils
Version:
latest (1.3.7)
1.3.7
1.3.6
1.3.5
1.3.4
1.3.3
1.3.2
1.3.1
1.3.0
1.2.7
1.2.6
1.2.5
1.2.4
1.2.3
1.2.2
Utility functions for Shopify UI Extensions
github.com/by-overse/shopify/tree/main
by-overse/shopify
@overse/ui-extensions-utils
/
dist
/
hooks
/
useFetchState
/
index.d.ts
7 lines
•
273 B
TypeScript
View Raw
1
2
3
4
5
6
7
export
declare
function
useFetchState<T>(): [
FetchState
<T>,
import
(
"react"
).
Dispatch
<
import
(
"react"
).
SetStateAction
<
FetchState
<T>>>];
export
type
FetchState
<T> = {
data
?: T |
null
;
loading
:
boolean
;
error
?:
unknown
|
null
; };
//# sourceMappingURL=index.d.ts.map