summaryrefslogtreecommitdiff
path: root/packages/taler-util/src/taleruri.ts
diff options
context:
space:
mode:
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;
},
};
}