pgiovanni

Untitled

Aug 22nd, 2021 (edited)
465
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [3:31:08 PM] File change detected. Starting incremental compilation...
  2.  
  3. 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[]'.
  4.   Type 'Empire & { finance: Finance; attacks: WarLogEntry[]; defenses: WarLogEntry[]; structures: Structure[]; }' is not assignable to type 'Empire'.
  5.     Types of property 'finance' are incompatible.
  6.       Type 'Finance' is missing the following properties from type 'Finance': empire, transactions
  7.  
  8.   8     return prisma.empire.findMany({
  9.         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  10.   9       include: {
  11.     ~~~~~~~~~~~~~~~~
  12. ...
  13.  14       }
  14.     ~~~~~~~
  15.  15     });
  16.     ~~~~~~~
  17.  
  18. src/model/finance/finance.service.ts:8:5 - error TS2322: Type '(Finance & { empire: Empire; transactions: VaultTransaction[]; })[]' is not assignable to type 'Finance[]'.
  19.   Type 'Finance & { empire: Empire; transactions: VaultTransaction[]; }' is not assignable to type 'Finance'.
  20.     Types of property 'gold' are incompatible.
  21.       Type 'Decimal' is not assignable to type 'number'.
  22.  
  23.   8     return prisma.finance.findMany({
  24.         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  25.   9      include: {
  26.     ~~~~~~~~~~~~~~~
  27. ...
  28.  12  }
  29.     ~~
  30.  13     });
  31.     ~~~~~~~
  32.  
  33. src/model/structure/structure.service.ts:8:5 - error TS2322: Type '(Structure & { empire: Empire; })[]' is not assignable to type 'Structure[]'.
  34.   Type 'Structure & { empire: Empire; }' is not assignable to type 'Structure'.
  35.     Types of property 'empire' are incompatible.
  36.       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'.
  37.  
  38.   8     return prisma.structure.findMany({
  39.         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  40.   9       include: {
  41.     ~~~~~~~~~~~~~~~~
  42. ...
  43.  11       }
  44.     ~~~~~~~
  45.  12     });
  46.     ~~~~~~~
  47.  
  48. src/model/user/user.service.ts:8:5 - error TS2322: Type '(User & { audit: AuditLog[]; empire: Empire; })[]' is not assignable to type 'User[]'.
  49.   Type 'User & { audit: AuditLog[]; empire: Empire; }' is not assignable to type 'User'.
  50.     Types of property 'empire' are incompatible.
  51.       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'.
  52.  
  53.   8     return prisma.user.findMany({
  54.         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  55.   9       include: {
  56.     ~~~~~~~~~~~~~~~~
  57. ...
  58.  12       }
  59.     ~~~~~~~
  60.  13     });
  61.     ~~~~~~~
  62.  
  63. src/model/vault-transaction/vault-transaction.service.ts:8:5 - error TS2322: Type '(VaultTransaction & { finance: Finance; })[]' is not assignable to type 'VaultTransaction[]'.
  64.   Type 'VaultTransaction & { finance: Finance; }' is not assignable to type 'VaultTransaction'.
  65.     Types of property 'amount' are incompatible.
  66.       Type 'Decimal' is not assignable to type 'number'.
  67.  
  68.   8     return prisma.vaultTransaction.findMany({
  69.         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  70.   9       include: {
  71.     ~~~~~~~~~~~~~~~~
  72. ...
  73.  11       }
  74.     ~~~~~~~
  75.  12     });
  76.     ~~~~~~~
  77.  
  78. 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[]'.
  79.   Type 'WarLogEntry & { attacker: Empire; defender: Empire; }' is not assignable to type 'WarLogEntry'.
  80.     Types of property 'attacker' are incompatible.
  81.       Type 'Empire' is missing the following properties from type 'Empire': finance, attacks, defenses, structures
  82.  
  83.   8     return prisma.warLogEntry.findMany({
  84.         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  85.   9       include: {
  86.     ~~~~~~~~~~~~~~~~
  87. ...
  88.  12       }
  89.     ~~~~~~~
  90.  13     });
  91.     ~~~~~~~
  92.  
  93. [3:31:08 PM] Found 6 errors. Watching for file changes.
  94.  
  95.  
  96.  
  97.  
Add Comment
Please, Sign In to add comment