@types/i18next-sprintf-postprocessor
TypeScript icon, indicating that this package has built-in type declarations

0.2.3 • Public • Published

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.

index.d.ts

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/i18next-sprintf-postprocessor

Weekly Downloads

4,625

Version

0.2.3

License

MIT

Unpacked Size

4.37 kB

Total Files

5

Last publish

Collaborators

  • types