Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

Failed to compile #78

Open
sheriumair opened this issue Apr 6, 2021 · 1 comment
Open

Failed to compile #78

sheriumair opened this issue Apr 6, 2021 · 1 comment

Comments

@sheriumair
Copy link

/home/sheriub/electionguard-admin-device-main/src/mocks/electionguard/mockElectionGuardApi.ts
TypeScript error in /home/sheriub/electionguard-admin-device-main/src/mocks/electionguard/mockElectionGuardApi.ts(51,36):
Conversion of type '{ "title": string; "demo": boolean; "state": string; "county": { "id": string; "name": string; }; "date": string; "ballotTrackerConfig": { "trackerType": string; "trackerSiteDisplay": string; "trackerUrlTemplate": string; }; ... 5 more ...; "sealURL": string; }' to type 'Election' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
Types of property 'parties' are incompatible.
Type '{ "id": string; "name": string; "abbrev": string; }[]' is not comparable to type 'Parties'.
Property 'fullName' is missing in type '{ "id": string; "name": string; "abbrev": string; }' but required in type 'Party'. TS2352

49 |       return JSON.stringify({
50 |         encryptedTallyFilename: 'fakeFileName',

51 | tallyResults: getZeroTally(election as Election),
| ^
52 | })
53 | }
54 | return JSON.stringify(tallyVotesResponse)

@ershad678678
Copy link

Facing the same issue, some guidance would be appreciated.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants