UNPKG
@the-overse/ui-extensions-utils
Version:
latest (1.2.2)
1.2.2
1.2.1
1.2.0
1.1.2
1.1.1
1.1.0
Utility functions for Shopify UI Extensions
github.com/by-overse/shopify/tree/main
by-overse/shopify
@the-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