diff options
Diffstat (limited to 'packages/taler-util/src/clk.ts')
-rw-r--r-- | packages/taler-util/src/clk.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/packages/taler-util/src/clk.ts b/packages/taler-util/src/clk.ts index 7bcd19b04..f9f260f83 100644 --- a/packages/taler-util/src/clk.ts +++ b/packages/taler-util/src/clk.ts @@ -23,12 +23,14 @@ import { readlinePrompt, pathBasename, } from "#compat-impl"; +import { AmountString } from "./taler-types.js"; export namespace clk { - class Converter<T> {} + class Converter<T> { } export const INT = new Converter<number>(); export const STRING: Converter<string> = new Converter<string>(); + export const AMOUNT: Converter<AmountString> = new Converter<AmountString>(); export interface OptionArgs<T> { help?: string; @@ -119,7 +121,7 @@ export namespace clk { private argKey: string, private name: string | null, private scArgs: SubcommandArgs, - ) {} + ) { } action(f: ActionFn<TG>): void { if (this.myAction) { |