[WIP] [TypeScript] Make db.select
functions generic to make it easy to type DB query results
#13082
Annotations
10 errors
Typecheck:
packages/loot-core/src/client/transfer.test.ts#L35
Argument of type 'DbViewTransactionInternal' is not assignable to parameter of type 'TransactionEntity'.
|
Typecheck:
packages/loot-core/src/client/transfer.test.ts#L43
Argument of type 'DbViewTransactionInternal' is not assignable to parameter of type 'TransactionEntity'.
|
Typecheck:
packages/loot-core/src/client/transfer.test.ts#L51
Argument of type 'DbViewTransactionInternal' is not assignable to parameter of type 'TransactionEntity'.
|
Typecheck:
packages/loot-core/src/client/transfer.test.ts#L59
Argument of type 'DbViewTransactionInternal' is not assignable to parameter of type 'TransactionEntity'.
|
Typecheck:
packages/loot-core/src/client/transfer.test.ts#L68
Argument of type 'DbViewTransactionInternal' is not assignable to parameter of type 'TransactionEntity'.
|
Typecheck:
packages/loot-core/src/server/accounts/transfer.test.ts#L82
Type 'DbViewTransactionInternal' is not assignable to type 'Transaction'.
|
Typecheck:
packages/loot-core/src/server/accounts/transfer.test.ts#L111
Type 'DbViewTransactionInternal' is not assignable to type 'Transaction'.
|
Typecheck:
packages/loot-core/src/server/accounts/transfer.test.ts#L123
Type 'DbViewTransactionInternal' is not assignable to type 'Transaction'.
|
Typecheck:
packages/loot-core/src/server/accounts/transfer.test.ts#L153
Type '{ payee: string; notes: string; id: db.DbTransaction["id"]; is_parent: db.DbTransaction["isParent"]; is_child: db.DbTransaction["isChild"]; ... 14 more ...; reconciled: db.DbTransaction["reconciled"]; }' is not assignable to type 'Transaction'.
|
Typecheck:
packages/loot-core/src/server/accounts/transfer.test.ts#L162
Type '{ payee: string; id: db.DbTransaction["id"]; is_parent: db.DbTransaction["isParent"]; is_child: db.DbTransaction["isChild"]; ... 15 more ...; reconciled: db.DbTransaction["reconciled"]; }' is not assignable to type 'Transaction'.
|
Loading