Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
siddharthvp committed Feb 17, 2021
1 parent d861825 commit 9d94f56
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ export default class Banana {
messageStore: BananaMessageStore;
finalFallback: string;

load(messsageSource: MessageSource | Messages, locale?: string): void;
load(messageSource: MessageSource): void;
load(messageSource: Messages, locale: string): void;
i18n(key: string, ...params: ParameterType[]): string;
setLocale(locale: string): void;
getFallbackLocales(): string[];
Expand Down Expand Up @@ -50,7 +51,8 @@ export class BananaEmitter {

export class BananaMessageStore {
constructor();
load(messageSource: Messages | MessageSource, locale?: string): void;
load(messageSource: MessageSource): void;
load(messageSource: Messages, locale: string): void;
getMessage(key: string, locale: string): string;
hasLocale(locale: string): boolean;
}

0 comments on commit 9d94f56

Please sign in to comment.