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/transfer.ts | |
parent | eca3819bcdf8f2a715c1f5e212ab4d81e3bbfd45 (diff) | |
download | wallet-core-d49960639a61bf0d27bf75a71a7f91077f4e2df6.tar.xz |
module resolution = node16
Diffstat (limited to 'packages/merchant-backoffice-ui/src/hooks/transfer.ts')
-rw-r--r-- | packages/merchant-backoffice-ui/src/hooks/transfer.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/merchant-backoffice-ui/src/hooks/transfer.ts b/packages/merchant-backoffice-ui/src/hooks/transfer.ts index 0f9d79f24..e21dd1dd5 100644 --- a/packages/merchant-backoffice-ui/src/hooks/transfer.ts +++ b/packages/merchant-backoffice-ui/src/hooks/transfer.ts @@ -20,11 +20,14 @@ import { RequestError, } from "@gnu-taler/web-util/lib/index.browser"; import { useEffect, useState } from "preact/hooks"; -import useSWR from "swr"; import { MerchantBackend } from "../declaration.js"; import { MAX_RESULT_SIZE, PAGE_SIZE } from "../utils/constants.js"; import { useBackendInstanceRequest, useMatchMutate } from "./backend.js"; +// FIX default import https://github.com/microsoft/TypeScript/issues/49189 +import _useSWR, { SWRHook } from "swr"; +const useSWR = _useSWR as unknown as SWRHook; + export function useTransferAPI(): TransferAPI { const mutateAll = useMatchMutate(); const { request } = useBackendInstanceRequest(); |