aboutsummaryrefslogtreecommitdiff
path: root/src/types.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/types.ts')
-rw-r--r--src/types.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/types.ts b/src/types.ts
index 8f24fda90..f6458955b 100644
--- a/src/types.ts
+++ b/src/types.ts
@@ -559,3 +559,10 @@ export interface CheckRepurchaseResult {
export interface Notifier {
notify(): void;
}
+
+/**
+ * For terseness.
+ */
+export function mkAmount(value: number, fraction: number, currency: string): AmountJson {
+ return {value, fraction, currency};
+}