Skip to content

Commit

Permalink
[DEV-11945] Fix Category i18n typings to hint that not every locale…
Browse files Browse the repository at this point in the history
… code is defined
  • Loading branch information
e1himself committed Nov 7, 2023
1 parent f8d1772 commit 1f3c18e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/types/Category.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ export interface CategoryRef {
id: number;
display_name: string;
display_description: string | null;
i18n: {
i18n: Partial<{
[localeCode: Culture.Code]: Category.Translation;
};
}>;
stories_number: number;
}

Expand Down

0 comments on commit 1f3c18e

Please sign in to comment.