diff options
author | Florian Dold <florian.dold@gmail.com> | 2020-08-12 15:48:02 +0530 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2020-08-12 15:48:02 +0530 |
commit | 56f5a1e3abe2679b4913ac87ff82860bb9675823 (patch) | |
tree | 5780413d148ac9cd84ac05cbca51018ae87248fd /packages/taler-wallet-core/src/util | |
parent | 6d2d65bf630e82ec99b187b7572463db7bba3f7f (diff) | |
download | wallet-core-56f5a1e3abe2679b4913ac87ff82860bb9675823.tar.xz |
codec
Diffstat (limited to 'packages/taler-wallet-core/src/util')
-rw-r--r-- | packages/taler-wallet-core/src/util/amounts.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/taler-wallet-core/src/util/amounts.ts b/packages/taler-wallet-core/src/util/amounts.ts index 00f4b17d7..33faa868e 100644 --- a/packages/taler-wallet-core/src/util/amounts.ts +++ b/packages/taler-wallet-core/src/util/amounts.ts @@ -27,6 +27,7 @@ import { codecForNumber, Codec, } from "./codec"; +import { AmountString } from "../types/talerTypes"; /** * Number of fractional units that one value unit represents. @@ -73,6 +74,8 @@ export const codecForAmountJson = (): Codec<AmountJson> => .property("fraction", codecForNumber) .build("AmountJson"); +export const codecForAmountString = (): Codec<AmountString> => codecForString; + /** * Result of a possibly overflowing operation. */ |