Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/i18next-node-fs-backend

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/i18next-node-fs-backend

TypeScript definitions for i18next-node-fs-backend

  • 2.1.4
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4.5K
decreased by-35.76%
Maintainers
1
Weekly downloads
 
Created
Source

Installation

npm install --save @types/i18next-node-fs-backend

Summary

This package contains type definitions for i18next-node-fs-backend (https://github.com/i18next/i18next-node-fs-backend).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/i18next-node-fs-backend.

index.d.ts

declare namespace I18next {
    interface I18nextOptions extends i18nextNodeFsBackEnd.I18nextOptions {}
}

declare namespace i18nextNodeFsBackEnd {
    /**
     * @summary Options for "i18next-node-fs-backend".
     * @interface
     */
    interface i18nextNodeFsBackEndOptions {
        /**
         * @summary Path where resources get loaded from.
         */
        loadPath: string;

        /**
         * @summary Path to post missing resources
         */
        addPath: string;

        /**
         * @summary jsonIndent to use when storing json files
         */
        jsonIndent: number;

        /**
         * @summary custom parser
         */
        parse?: ((data: any) => any) | undefined;
    }

    /**
     * @summary Options for "i18next".
     * @interface
     */
    interface I18nextOptions {
        backend?: i18nextNodeFsBackEndOptions | undefined;
    }
}

declare module "i18next-node-fs-backend" {
    import * as i18next from "i18next";

    class Backend implements i18next.BackendModule<i18nextNodeFsBackEnd.i18nextNodeFsBackEndOptions> {
        type: "backend";
        constructor(services?: any, options?: i18nextNodeFsBackEnd.i18nextNodeFsBackEndOptions);
        init(
            services: i18next.Services,
            backendOptions?: i18nextNodeFsBackEnd.i18nextNodeFsBackEndOptions,
            i18nextOptions?: i18next.InitOptions,
        ): void;
        read(language: string, namespace: string, callback: i18next.ReadCallback): void;
        create(languages: string[], namespace: string, key: string, fallbackValue: string): void;
    }

    const module: typeof Backend;
    export = module;
}

Additional Details

  • Last updated: Wed, 18 Oct 2023 05:47:07 GMT
  • Dependencies: i18next

Credits

These definitions were written by Cyril Schumacher, and Silas Rech.

FAQs

Package last updated on 18 Oct 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc