Skip to content
This repository has been archived by the owner on May 19, 2022. It is now read-only.

Commit

Permalink
Merge pull request #26 from panter/features/typescript-constructor-fix
Browse files Browse the repository at this point in the history
fix(typescript): make options in constructor optional
  • Loading branch information
claudiocro committed May 29, 2018
2 parents ac88d95 + 2cf3e4b commit e31aaab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion typings/index.d.ts
Expand Up @@ -2,7 +2,7 @@ import { i18n, TranslationFunction, TranslationOptions } from "i18next";
import Vue, { PluginFunction } from "vue";

declare class VueI18Next {
constructor(i18next: i18n, options: VueI18NextOptions);
constructor(i18next: i18n, options?: VueI18NextOptions);
i18next: i18n;
t: TranslationFunction;
resetVm: ({ }: { i18nLoadedAt: Date }) => void;
Expand Down
3 changes: 2 additions & 1 deletion typings/test/vue-i18next-tests.ts
Expand Up @@ -16,7 +16,8 @@ i18next.init({
lng: "de",
resources: {}
});
const i18n = new VueI18Next(i18next, {});
const i18n = new VueI18Next(i18next);
const i18nWithOptions = new VueI18Next(i18next, {});

const vm = new Vue({
i18n
Expand Down

0 comments on commit e31aaab

Please sign in to comment.