diff options
author | Sebastian <sebasjm@gmail.com> | 2023-02-16 12:13:31 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2023-02-16 12:13:31 -0300 |
commit | d49960639a61bf0d27bf75a71a7f91077f4e2df6 (patch) | |
tree | ce2805e4e903210b782333f94877f90c4e3647f7 /packages/merchant-backoffice-ui/src/hooks/instance.ts | |
parent | eca3819bcdf8f2a715c1f5e212ab4d81e3bbfd45 (diff) | |
download | wallet-core-d49960639a61bf0d27bf75a71a7f91077f4e2df6.tar.xz |
module resolution = node16
Diffstat (limited to 'packages/merchant-backoffice-ui/src/hooks/instance.ts')
-rw-r--r-- | packages/merchant-backoffice-ui/src/hooks/instance.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/merchant-backoffice-ui/src/hooks/instance.ts b/packages/merchant-backoffice-ui/src/hooks/instance.ts index 0b00936cd..c9eb84e74 100644 --- a/packages/merchant-backoffice-ui/src/hooks/instance.ts +++ b/packages/merchant-backoffice-ui/src/hooks/instance.ts @@ -18,7 +18,6 @@ import { HttpResponseOk, RequestError, } from "@gnu-taler/web-util/lib/index.browser"; -import useSWR, { useSWRConfig } from "swr"; import { useBackendContext } from "../context/backend.js"; import { MerchantBackend } from "../declaration.js"; import { @@ -27,6 +26,10 @@ import { useMatchMutate, } from "./backend.js"; +// FIX default import https://github.com/microsoft/TypeScript/issues/49189 +import _useSWR, { SWRHook, useSWRConfig } from "swr"; +const useSWR = _useSWR as unknown as SWRHook; + interface InstanceAPI { updateInstance: ( data: MerchantBackend.Instances.InstanceReconfigurationMessage, |