diff --git a/i18next/i18next.d.ts b/i18next/i18next.d.ts index 9bd5aec50..c9a215953 100644 --- a/i18next/i18next.d.ts +++ b/i18next/i18next.d.ts @@ -31,8 +31,8 @@ interface I18nTranslateOptions extends I18nextOptions { } interface i18nextSprintfPostProcessorStatic { - overloadTranslationOptionHandler(args: Array): void; - process(value: any, key: string, options: Object): void; + overloadTranslationOptionHandler?(args: Array): void; + process?(value: any, key: string, options: Object): void; } interface I18nextOptions extends i18nextSprintfPostProcessorStatic { @@ -83,8 +83,6 @@ interface I18nextOptions extends i18nextSprintfPostProcessorStatic { // NOTE https://github.com/borisyankov/DefinitelyTyped/pull/5590 replace?: any; - - overloadTranslationOptionHandler: (args: Array) => void; } interface I18nextStatic {