mirror of
https://github.com/actualbudget/actual.git
synced 2026-04-29 19:14:22 -05:00
[Proposal] Enhance transaction import functionality with new Transaction type and type annotations (#4720)
* Enhance transaction import functionality with new Transaction type and type annotations * release notes * fixes for PR * move transaction type as requested by @MatissJanis * type importTransaction return value --------- Co-authored-by: Matiss Janis Aboltins <matiss@mja.lv>
This commit is contained in:
committed by
GitHub
parent
6872dd235b
commit
cac318255d
@@ -1,5 +1,6 @@
|
||||
// @ts-strict-ignore
|
||||
import type { Handlers } from 'loot-core/types/handlers';
|
||||
import type { ImportTransactionEntity } from 'loot-core/types/models/import-transaction';
|
||||
|
||||
import * as injected from './injected';
|
||||
|
||||
@@ -98,8 +99,8 @@ export interface ImportTransactionsOpts {
|
||||
}
|
||||
|
||||
export function importTransactions(
|
||||
accountId,
|
||||
transactions,
|
||||
accountId: string,
|
||||
transactions: ImportTransactionEntity[],
|
||||
opts: ImportTransactionsOpts = {
|
||||
defaultCleared: true,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user