MCPcopy
hub / github.com/figma/plugin-samples / Country

Interface Country

capital/code.ts:3–10  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected