nuno a révisé ce gist 3 weeks ago. Aller à la révision
1 file changed, 17 insertions
gistfile1.txt(fichier créé)
| @@ -0,0 +1,17 @@ | |||
| 1 | + | Type '{ class: CharacterClass; ownerKey: string; name: string; level: number; nation: Nation; active?: boolean | undefined; sharedWith?: string[] | undefined; stats?: { atk?: number | undefined; def?: number | undefined; heal?: number | undefined; } | undefined; }' is not assignable to type 'Character'. | |
| 2 | + | Types of property 'active' are incompatible. | |
| 3 | + | Type 'boolean | undefined' is not assignable to type 'boolean'. | |
| 4 | + | Type 'undefined' is not assignable to type 'boolean'. | |
| 5 | + | ||
| 6 | + | Type '{ class: ClassKey; name: string; level: number; nation: Nation; active: boolean; stats?: CharacterStats | undefined; sharedWith?: string[] | undefined; }' is not assignable to type 'SerializableCharacter'. | |
| 7 | + | Types of property 'stats' are incompatible. | |
| 8 | + | Type 'CharacterStats | undefined' is not assignable to type '{ atk?: number | undefined; def?: number | undefined; heal?: number | undefined; } | undefined'. | |
| 9 | + | Type 'CharacterStats' has no properties in common with type '{ atk?: number | undefined; def?: number | undefined; heal?: number | undefined; }'. | |
| 10 | + | ||
| 11 | + | Argument of type '{ active: boolean; name: string; class: ClassKey; level: number; nation: Nation; sharedWith?: string[] | undefined; stats?: { atk?: number | undefined; def?: number | undefined; heal?: number | undefined; } | undefined; }' is not assignable to parameter of type 'Character'. | |
| 12 | + | Property 'ownerKey' is missing in type '{ active: boolean; name: string; class: ClassKey; level: number; nation: Nation; sharedWith?: string[] | undefined; stats?: { atk?: number | undefined; def?: number | undefined; heal?: number | undefined; } | undefined; }' but required in type 'Character' | |
| 13 | + | ||
| 14 | + | ||
| 15 | + | Conversion of type 'Character' to type 'SerializableCharacter' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first. | |
| 16 | + | Types of property 'class' are incompatible. | |
| 17 | + | Type 'CharacterClass' is not comparable to type 'ClassKey' | |
Plus récent
Plus ancien