Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [3:31:08 PM] File change detected. Starting incremental compilation...
- src/model/empire/empire.service.ts:8:5 - error TS2322: Type '(Empire & { finance: Finance; attacks: WarLogEntry[]; defenses: WarLogEntry[]; structures: Structure[]; })[]' is not assignable to type 'Empire[]'.
- Type 'Empire & { finance: Finance; attacks: WarLogEntry[]; defenses: WarLogEntry[]; structures: Structure[]; }' is not assignable to type 'Empire'.
- Types of property 'finance' are incompatible.
- Type 'Finance' is missing the following properties from type 'Finance': empire, transactions
- 8 return prisma.empire.findMany({
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 9 include: {
- ~~~~~~~~~~~~~~~~
- ...
- 14 }
- ~~~~~~~
- 15 });
- ~~~~~~~
- src/model/finance/finance.service.ts:8:5 - error TS2322: Type '(Finance & { empire: Empire; transactions: VaultTransaction[]; })[]' is not assignable to type 'Finance[]'.
- Type 'Finance & { empire: Empire; transactions: VaultTransaction[]; }' is not assignable to type 'Finance'.
- Types of property 'gold' are incompatible.
- Type 'Decimal' is not assignable to type 'number'.
- 8 return prisma.finance.findMany({
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 9 include: {
- ~~~~~~~~~~~~~~~
- ...
- 12 }
- ~~
- 13 });
- ~~~~~~~
- src/model/structure/structure.service.ts:8:5 - error TS2322: Type '(Structure & { empire: Empire; })[]' is not assignable to type 'Structure[]'.
- Type 'Structure & { empire: Empire; }' is not assignable to type 'Structure'.
- Types of property 'empire' are incompatible.
- Type 'import("/home/paul/dukesthrone/DukesThrone/dt-backend/node_modules/.pnpm/@prisma+client@2.28.0_prisma@2.28.0/node_modules/.prisma/client/index").Empire' is not assignable to type 'import("/home/paul/dukesthrone/DukesThrone/dt-backend/src/model/types/empire.type").Empire'.
- 8 return prisma.structure.findMany({
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 9 include: {
- ~~~~~~~~~~~~~~~~
- ...
- 11 }
- ~~~~~~~
- 12 });
- ~~~~~~~
- src/model/user/user.service.ts:8:5 - error TS2322: Type '(User & { audit: AuditLog[]; empire: Empire; })[]' is not assignable to type 'User[]'.
- Type 'User & { audit: AuditLog[]; empire: Empire; }' is not assignable to type 'User'.
- Types of property 'empire' are incompatible.
- Type 'import("/home/paul/dukesthrone/DukesThrone/dt-backend/node_modules/.pnpm/@prisma+client@2.28.0_prisma@2.28.0/node_modules/.prisma/client/index").Empire' is not assignable to type 'import("/home/paul/dukesthrone/DukesThrone/dt-backend/src/model/types/empire.type").Empire'.
- 8 return prisma.user.findMany({
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 9 include: {
- ~~~~~~~~~~~~~~~~
- ...
- 12 }
- ~~~~~~~
- 13 });
- ~~~~~~~
- src/model/vault-transaction/vault-transaction.service.ts:8:5 - error TS2322: Type '(VaultTransaction & { finance: Finance; })[]' is not assignable to type 'VaultTransaction[]'.
- Type 'VaultTransaction & { finance: Finance; }' is not assignable to type 'VaultTransaction'.
- Types of property 'amount' are incompatible.
- Type 'Decimal' is not assignable to type 'number'.
- 8 return prisma.vaultTransaction.findMany({
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 9 include: {
- ~~~~~~~~~~~~~~~~
- ...
- 11 }
- ~~~~~~~
- 12 });
- ~~~~~~~
- src/model/war-log-entry/war-log-entry.service.ts:8:5 - error TS2322: Type '(WarLogEntry & { attacker: Empire; defender: Empire; })[]' is not assignable to type 'WarLogEntry[]'.
- Type 'WarLogEntry & { attacker: Empire; defender: Empire; }' is not assignable to type 'WarLogEntry'.
- Types of property 'attacker' are incompatible.
- Type 'Empire' is missing the following properties from type 'Empire': finance, attacks, defenses, structures
- 8 return prisma.warLogEntry.findMany({
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 9 include: {
- ~~~~~~~~~~~~~~~~
- ...
- 12 }
- ~~~~~~~
- 13 });
- ~~~~~~~
- [3:31:08 PM] Found 6 errors. Watching for file changes.
Add Comment
Please, Sign In to add comment