Skip to content

Commit

Permalink
Add missing lookup function
Browse files Browse the repository at this point in the history
  • Loading branch information
ericmatte committed Sep 17, 2024
1 parent 1074354 commit 3fd5851
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/createDefinitionFile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ type I18n = {
/** Convert a number into a readable size representation. */
toHumanSize(number: number, options?: I18n.NumberOptions): string;
/** Find and process the translation using the provided scope and options. */
lookup(scope: string): string | undefined;
};
declare var I18n: I18n;
Expand Down
3 changes: 3 additions & 0 deletions tests/I18n.expected.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ type I18n = {

/** Convert a number into a readable size representation. */
toHumanSize(number: number, options?: I18n.NumberOptions): string;

/** Find and process the translation using the provided scope and options. */
lookup(scope: string): string | undefined;
};

declare var I18n: I18n;
Expand Down

0 comments on commit 3fd5851

Please sign in to comment.