Skip to content

Commit

Permalink
Adding language support
Browse files Browse the repository at this point in the history
  • Loading branch information
vojtechpavlu committed Apr 9, 2024
1 parent ed3c780 commit dd3b8b4
Show file tree
Hide file tree
Showing 4 changed files with 386 additions and 48 deletions.
3 changes: 3 additions & 0 deletions src/data/base.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { Language } from './languages/base';

/** Type of geographical element */
export type GeographyType = 'country' | 'region';

Expand All @@ -19,6 +21,7 @@ export interface Region extends NamedGeography {
/** Declaration of single countries */
export interface Country extends NamedGeography {
capital: string;
languages: Language[];
}

/** Declaration of a geography element being either Region or Country. */
Expand Down
Loading

0 comments on commit dd3b8b4

Please sign in to comment.