Skip to content

Commit 77e08ba

Browse files
committed
fix: typo
1 parent 8e72a54 commit 77e08ba

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

src/index.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -190,13 +190,13 @@ export interface LocaleDefinition {
190190
[group: string]: any;
191191
}
192192

193-
export type UseableLocale = LiteralUnion<KnownLocale>;
194-
export type UsedLocales = Partial<Record<UseableLocale, LocaleDefinition>>;
193+
export type UsableLocale = LiteralUnion<KnownLocale>;
194+
export type UsedLocales = Partial<Record<UsableLocale, LocaleDefinition>>;
195195

196196
export interface FakerOptions {
197197
locales?: UsedLocales;
198-
locale?: UseableLocale;
199-
localeFallback?: UseableLocale;
198+
locale?: UsableLocale;
199+
localeFallback?: UsableLocale;
200200
}
201201

202202
export interface DefinitionTypes {
@@ -222,8 +222,8 @@ export interface DefinitionTypes {
222222

223223
export class Faker {
224224
locales: UsedLocales;
225-
locale: UseableLocale;
226-
localeFallback: UseableLocale;
225+
locale: UsableLocale;
226+
localeFallback: UsableLocale;
227227

228228
// TODO @Shinigami92 2022-01-11: For now we loose types here
229229
// @ts-expect-error: will be lazy filled by constructor
@@ -435,7 +435,7 @@ export class Faker {
435435
*
436436
* @param locale
437437
*/
438-
setLocale(locale: UseableLocale): void {
438+
setLocale(locale: UsableLocale): void {
439439
this.locale = locale;
440440
}
441441
}

0 commit comments

Comments
 (0)