summaryrefslogtreecommitdiff
path: root/packages/taler-util/src/taleruri.ts
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2024-03-20 00:19:29 -0300
committerSebastian <sebasjm@gmail.com>2024-03-20 00:19:29 -0300
commit62d5a5ef7b1ff9f9c63d9a4eba21620aa8a2fad9 (patch)
tree263bb9db784a64bd77a1c7538407e164c704cb01 /packages/taler-util/src/taleruri.ts
parentc09caa5fdca91fb6ded6b2ce8caf1620c0273b80 (diff)
downloadwallet-core-dev/sebasjm/merchant-api.tar.gz
wallet-core-dev/sebasjm/merchant-api.tar.bz2
wallet-core-dev/sebasjm/merchant-api.zip
wip, MerchantRefundResponse is deprecateddev/sebasjm/merchant-api
Diffstat (limited to 'packages/taler-util/src/taleruri.ts')
-rw-r--r--packages/taler-util/src/taleruri.ts10
1 files changed, 5 insertions, 5 deletions
diff --git a/packages/taler-util/src/taleruri.ts b/packages/taler-util/src/taleruri.ts
index 4a8647d21..97b82c061 100644
--- a/packages/taler-util/src/taleruri.ts
+++ b/packages/taler-util/src/taleruri.ts
@@ -43,11 +43,11 @@ export type TalerUri =
| WithdrawExchangeUri;
declare const __action_str: unique symbol;
-export type TalerActionString = string & { [__action_str]: true };
+export type TalerUriString = string & { [__action_str]: true };
-export function codecForTalerActionString(): Codec<TalerActionString> {
+export function codecForTalerUriString(): Codec<TalerUriString> {
return {
- decode(x: any, c?: Context): TalerActionString {
+ decode(x: any, c?: Context): TalerUriString {
if (typeof x !== "string") {
throw new DecodingError(
`expected string at ${renderContext(c)} but got ${typeof x}`,
@@ -55,10 +55,10 @@ export function codecForTalerActionString(): Codec<TalerActionString> {
}
if (parseTalerUri(x) === undefined) {
throw new DecodingError(
- `invalid taler action at ${renderContext(c)} but got "${x}"`,
+ `invalid taler URI at ${renderContext(c)} but got "${x}"`,
);
}
- return x as TalerActionString;
+ return x as TalerUriString;
},
};
}