Skip to content

Commit

Permalink
Fix WritingSystem types (#723)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisvire authored Nov 15, 2024
1 parent 1f038c5 commit d51aa6d
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions config/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,28 +92,26 @@ export type AudioConfig = {
};

export type WritingSystemConfig = {
[key: string]: {
displayNames: {
[key: string]: string;
};
fontFamily: string;
textDirection: string;
displayNames: {
[key: string]: string;
};
fontFamily: string;
textDirection: string;
};

export type DictionaryWritingSystemConfig = WritingSystemConfig & {
code: string;
type: string;
trait: {
trait?: {
[key: string]: string;
};
sortingMethod: {
type: string;
ignoreChars?: string[];
};
alphabet: string[];
alphabet?: string[];
inputButtons?: string[];
reversalFilename: string;
reversalFilename?: string;
features?: {
[name: string]: boolean;
};
Expand Down Expand Up @@ -204,7 +202,9 @@ export type AppConfig = {
};
interfaceLanguages?: {
useSystemLanguage: boolean;
writingSystems: WritingSystemConfig;
writingSystems: {
[key: string]: WritingSystemConfig;
};
};
keys?: string[];
analytics?: {
Expand Down Expand Up @@ -278,7 +278,9 @@ export type ScriptureConfig = AppConfig & {
};

export type DictionaryConfig = AppConfig & {
writingSystems: DictionaryWritingSystemConfig;
writingSystems: {
[key: string]: DictionaryWritingSystemConfig;
};
indexes: {
[key: string]: {
displayed: boolean;
Expand Down

0 comments on commit d51aa6d

Please sign in to comment.