Installation
npm install --save @types/i18next-sprintf-postprocessor
Summary
This package contains type definitions for i18next-sprintf-postprocessor (https://github.com/i18next/i18next-sprintf-postProcessor).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/i18next-sprintf-postprocessor.
declare module "i18next-sprintf-postprocessor" {
import * as i18next from "i18next";
module "i18next" {
interface TFunction {
(key: string, ...args: any[]): string;
}
}
interface I18nextSprintfPostProcessor extends i18next.PostProcessorModule {
name: string;
type: "postProcessor";
process(value: any, key: string, options: any): any;
overloadTranslationOptionHandler(args: string[]): {
postProcess: "sprintf";
sprintf: string[];
};
}
var sprintf: I18nextSprintfPostProcessor;
export = sprintf;
}
declare module "i18next-sprintf-postprocessor/dist/commonjs" {
import sprintf = require("i18next-sprintf-postprocessor");
export default sprintf;
}
Additional Details
- Last updated: Tue, 07 Nov 2023 03:09:37 GMT
- Dependencies: i18next
Credits
These definitions were written by Cyril Schumacher.