Skip to content

Commit

Permalink
feat(locale): allow LocaleObject to have regex
Browse files Browse the repository at this point in the history
+ Allow LocaleObject to have both RegExp or string as valid values
  • Loading branch information
samir-araujo committed Apr 12, 2020
1 parent 3c9eecf commit 7d1088d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types/locale.ts
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,6 @@ export enum Locale {
ZU_ZA = 'zu_ZA',
}

export type LocaleObject<T = string> = {
export type LocaleObject<T = string | RegExp> = {
[K in Locale]?: T;
};

0 comments on commit 7d1088d

Please sign in to comment.