Skip to content

Commit

Permalink
Add return type for memoize
Browse files Browse the repository at this point in the history
  • Loading branch information
BartoszGrajdek committed Sep 12, 2023
1 parent 238271e commit a30f45c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/LocaleDigitUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const INDEX_DECIMAL = 10;
const INDEX_MINUS_SIGN = 11;
const INDEX_GROUP = 12;

const getLocaleDigits = _.memoize((locale: string) => {
const getLocaleDigits = _.memoize((locale: string): string[] => {
const localeDigits = [...STANDARD_DIGITS];
for (let i = 0; i <= 9; i++) {
localeDigits[i] = NumberFormatUtils.format(locale, i);
Expand Down

0 comments on commit a30f45c

Please sign in to comment.