| 1 | // This plugin fetches a list of countries from an external API and shows the capital of the selected country |
| 2 | |
| 3 | interface Country { |
| 4 | name: string; |
| 5 | data: { |
| 6 | index: number; |
| 7 | name: string; |
| 8 | capital: string; |
| 9 | }; |
| 10 | } |
| 11 | |
| 12 | let resolveCountries = (countries: Country[]) => {}; |
| 13 | const countriesPromise = new Promise<Country[]>((resolve) => { |
nothing calls this directly
no outgoing calls
no test coverage detected