diff options
Diffstat (limited to 'src/types')
-rw-r--r-- | src/types/dbTypes.ts | 4 | ||||
-rw-r--r-- | src/types/history.ts | 6 | ||||
-rw-r--r-- | src/types/schemacore.ts | 4 | ||||
-rw-r--r-- | src/types/types-test.ts | 16 | ||||
-rw-r--r-- | src/types/walletTypes.ts | 3 |
5 files changed, 16 insertions, 17 deletions
diff --git a/src/types/dbTypes.ts b/src/types/dbTypes.ts index 5a0a653ee..db71db710 100644 --- a/src/types/dbTypes.ts +++ b/src/types/dbTypes.ts @@ -1370,7 +1370,7 @@ export interface BankWithdrawUriRecord { /** * Status of recoup operations that were grouped together. - * + * * The remaining amount of involved coins should be set to zero * in the same transaction that inserts the RecoupGroupRecord. */ @@ -1387,7 +1387,7 @@ export interface RecoupGroupRecord { /** * Public keys that identify the coins being recouped * as part of this session. - * + * * (Structured like this to enable multiEntry indexing in IndexedDB.) */ coinPubs: string[]; diff --git a/src/types/history.ts b/src/types/history.ts index 976788fc3..f4f3872ca 100644 --- a/src/types/history.ts +++ b/src/types/history.ts @@ -18,9 +18,9 @@ * Type and schema definitions for the wallet's history. */ - /** - * Imports. - */ +/** + * Imports. + */ import { RefreshReason } from "./walletTypes"; import { ReserveTransaction } from "./ReserveTransaction"; import { WithdrawalSource } from "./dbTypes"; diff --git a/src/types/schemacore.ts b/src/types/schemacore.ts index c709e3d7a..820f68d18 100644 --- a/src/types/schemacore.ts +++ b/src/types/schemacore.ts @@ -17,7 +17,7 @@ /** * Core of the wallet's schema, used for painless export, import * and schema migration. - * + * * If this schema is extended, it must be extended in a completely * backwards-compatible way. */ @@ -55,4 +55,4 @@ interface SchemaCore { * Schema version of the database that has been exported to the core schema */ versionSourceDatabase: number; -}
\ No newline at end of file +} diff --git a/src/types/types-test.ts b/src/types/types-test.ts index 67d379f7b..885371a1a 100644 --- a/src/types/types-test.ts +++ b/src/types/types-test.ts @@ -24,7 +24,7 @@ const amt = ( currency: string, ): Amounts.AmountJson => ({ value, fraction, currency }); -test("amount addition (simple)", t => { +test("amount addition (simple)", (t) => { const a1 = amt(1, 0, "EUR"); const a2 = amt(1, 0, "EUR"); const a3 = amt(2, 0, "EUR"); @@ -32,14 +32,14 @@ test("amount addition (simple)", t => { t.pass(); }); -test("amount addition (saturation)", t => { +test("amount addition (saturation)", (t) => { const a1 = amt(1, 0, "EUR"); const res = Amounts.add(amt(Amounts.maxAmountValue, 0, "EUR"), a1); t.true(res.saturated); t.pass(); }); -test("amount subtraction (simple)", t => { +test("amount subtraction (simple)", (t) => { const a1 = amt(2, 5, "EUR"); const a2 = amt(1, 0, "EUR"); const a3 = amt(1, 5, "EUR"); @@ -47,7 +47,7 @@ test("amount subtraction (simple)", t => { t.pass(); }); -test("amount subtraction (saturation)", t => { +test("amount subtraction (saturation)", (t) => { const a1 = amt(0, 0, "EUR"); const a2 = amt(1, 0, "EUR"); let res = Amounts.sub(a1, a2); @@ -57,7 +57,7 @@ test("amount subtraction (saturation)", t => { t.pass(); }); -test("amount comparison", t => { +test("amount comparison", (t) => { t.is(Amounts.cmp(amt(1, 0, "EUR"), amt(1, 0, "EUR")), 0); t.is(Amounts.cmp(amt(1, 1, "EUR"), amt(1, 0, "EUR")), 1); t.is(Amounts.cmp(amt(1, 1, "EUR"), amt(1, 2, "EUR")), -1); @@ -68,7 +68,7 @@ test("amount comparison", t => { t.pass(); }); -test("amount parsing", t => { +test("amount parsing", (t) => { t.is( Amounts.cmp(Amounts.parseOrThrow("TESTKUDOS:0"), amt(0, 0, "TESTKUDOS")), 0, @@ -117,7 +117,7 @@ test("amount parsing", t => { t.pass(); }); -test("amount stringification", t => { +test("amount stringification", (t) => { t.is(Amounts.toString(amt(0, 0, "TESTKUDOS")), "TESTKUDOS:0"); t.is(Amounts.toString(amt(4, 94000000, "TESTKUDOS")), "TESTKUDOS:4.94"); t.is(Amounts.toString(amt(0, 10000000, "TESTKUDOS")), "TESTKUDOS:0.1"); @@ -128,7 +128,7 @@ test("amount stringification", t => { t.pass(); }); -test("contract terms validation", t => { +test("contract terms validation", (t) => { const c = { nonce: "123123123", h_wire: "123", diff --git a/src/types/walletTypes.ts b/src/types/walletTypes.ts index c6473a9b7..7b58ba500 100644 --- a/src/types/walletTypes.ts +++ b/src/types/walletTypes.ts @@ -20,7 +20,7 @@ * These types are defined in a separate file make tree shaking easier, since * some components use these types (via RPC) but do not depend on the wallet * code directly. - * + * * @author Florian Dold <dold@taler.net> */ @@ -317,7 +317,6 @@ export class ReturnCoinsRequest { static checked: (obj: any) => ReturnCoinsRequest; } - /** * Status of processing a tip. */ |