taler-typescript-core

Wallet core logic and WebUIs for various components
Log | Files | Refs | Submodules | README | LICENSE

commit 1ae25b3b036707cb242776f7059cd16018ca4f5b
parent c434ff2d7bc045c14ab7de47b401525758401aee
Author: Florian Dold <dold@taler.net>
Date:   Fri, 13 Nov 2026 01:06:05 +0100

merchant web UI: name the exchange status resource type

Use the public RemoteResource type rather than an inferred type from a
nested dependency path.

Assisted-by: LLM

Diffstat:
Mpackages/taler-merchant-webui/src/api/hooks/useExchangeStatus.ts | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/packages/taler-merchant-webui/src/api/hooks/useExchangeStatus.ts b/packages/taler-merchant-webui/src/api/hooks/useExchangeStatus.ts @@ -9,7 +9,7 @@ import { useEffect, useMemo, useRef } from "preact/hooks"; import { useMerchantSWR } from "../swr.js"; -import { remoteResource } from "../contracts.js"; +import { remoteResource, type RemoteResource } from "../contracts.js"; import { getClientConfig } from "./common.js"; import { createExchangeStatusPoller, @@ -18,7 +18,7 @@ import { } from "../exchangeStatus.js"; /** Mounted only by the payment-services route; configuration is fetched separately. */ -export function useExchangeStatus() { +export function useExchangeStatus(): RemoteResource<ExchangeStatus[]> { const config = getClientConfig(); // SWR's mutate() can resolve to cached data after a failed revalidation. Track // the actual fetch outcome so that stale next_download values cannot drive retries.