UNPKG

@marceloclp/monzojs

Version:

Unofficial wrapper for the Monzo API written in TypeScript.

19 lines (18 loc) 470 B
import { Monzo } from '..'; export declare type Types = 'transaction.created'; export declare type Event<T extends Types, D> = { type: T; data: D; }; export declare type TransactionCreated = Event<'transaction.created', { account_id: string; amount: number; created: string; currency: string; description: string; id: string; category: string; is_load: boolean; settled: string; merchant: Monzo.Transactions.Merchant; }>;