diff options
Diffstat (limited to 'packages/taler-wallet-webextension/src/mui/handlers.ts')
| -rw-r--r-- | packages/taler-wallet-webextension/src/mui/handlers.ts | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/packages/taler-wallet-webextension/src/mui/handlers.ts b/packages/taler-wallet-webextension/src/mui/handlers.ts index 9d393e5b7..655fceef9 100644 --- a/packages/taler-wallet-webextension/src/mui/handlers.ts +++ b/packages/taler-wallet-webextension/src/mui/handlers.ts @@ -13,6 +13,7 @@ You should have received a copy of the GNU General Public License along with GNU Taler; see the file COPYING. If not, see <http://www.gnu.org/licenses/> */ +import { AmountJson } from "@gnu-taler/taler-util"; import { TalerError } from "@gnu-taler/taler-wallet-core"; export interface TextFieldHandler { @@ -21,6 +22,12 @@ export interface TextFieldHandler { error?: string; } +export interface AmountFieldHandler { + onInput?: (value: AmountJson) => Promise<void>; + value: AmountJson; + error?: string; +} + export interface ButtonHandler { onClick?: () => Promise<void>; error?: TalerError; |
