Skip to content

Commit

Permalink
error fix
Browse files Browse the repository at this point in the history
  • Loading branch information
viki-777 committed Oct 29, 2024
1 parent f7efecc commit ccc6e9d
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
Empty file added @types/world-countries.d.ts
Empty file.
18 changes: 18 additions & 0 deletions app/types/world-countries.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
declare module 'world-countries' {
export interface Country {
cca2: string; // Country code
translations: { [languageCode: string]: { official: string; common: string } };
latlng: [number, number];
demonyms: { [languageCode: string]: { f: string; m: string } };
landlocked: boolean;
borders: string[];
area: number;
name: { common: string }; // Country name
flag: string; // Country flag
region: string; // Country region
}

const countries: Country[];
export default countries;
}

8 changes: 7 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,19 @@
"paths": {
"@/*": ["./*"]
}


},
"include": [
"next-env.d.ts",
"**/*.ts",
"**/*.tsx",
".next/types/**/*.ts",
"app/components/navbar/MenuItem.js"
"app/components/navbar/MenuItem.js",
"@types",
"src"
],
"exclude": ["node_modules"]
}


0 comments on commit ccc6e9d

Please sign in to comment.