Skip to content

Commit

Permalink
fix: make d.ts files express the correct type
Browse files Browse the repository at this point in the history
  • Loading branch information
felixmosh committed May 22, 2023
1 parent 7b0dc21 commit 92d0b19
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
12 changes: 9 additions & 3 deletions plugin.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
export class HMRPlugin {
constructor(options: Partial<{ client: boolean; server: boolean }>);
init(i18n);
export declare class HMRPlugin {
type: '3rdParty';
constructor(hmrOptions: Partial<{
client: boolean;
server: boolean;
}>);
init(i18nInstance: any): void;
toJSON(): null;
toString(): string;
}
3 changes: 2 additions & 1 deletion webpack.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export class I18NextHMRPlugin {
export declare class I18NextHMRPlugin {
static addListener(cb: (data: { lang: string; ns: string }) => void): void;

constructor(options: { localesDir: string; } | { localesDirs: string[] });
}

0 comments on commit 92d0b19

Please sign in to comment.