@types/i18next-node-fs-backend
Advanced tools
Comparing version 2.1.0 to 2.1.1
@@ -40,3 +40,3 @@ // Type definitions for i18next-node-fs-backend 2.1 | ||
*/ | ||
parse?: (data: any) => any; | ||
parse?: ((data: any) => any) | undefined; | ||
} | ||
@@ -49,3 +49,3 @@ | ||
interface I18nextOptions { | ||
backend?: i18nextNodeFsBackEndOptions; | ||
backend?: i18nextNodeFsBackEndOptions | undefined; | ||
} | ||
@@ -52,0 +52,0 @@ } |
{ | ||
"name": "@types/i18next-node-fs-backend", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "TypeScript definitions for i18next-node-fs-backend", | ||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/i18next-node-fs-backend", | ||
"license": "MIT", | ||
@@ -19,3 +20,3 @@ "contributors": [ | ||
"main": "", | ||
"types": "index", | ||
"types": "index.d.ts", | ||
"repository": { | ||
@@ -30,4 +31,4 @@ "type": "git", | ||
}, | ||
"typesPublisherContentHash": "18ddea6152ea511cfc8053a54573f4eb9a9811bb5933e49ede9bd122bd44ccef", | ||
"typeScriptVersion": "2.4" | ||
"typesPublisherContentHash": "a2744ddb0bacb4283782d5919300cc012943d95d4c2a6cdc731dc511efa10da1", | ||
"typeScriptVersion": "3.6" | ||
} |
@@ -8,10 +8,79 @@ # Installation | ||
# Details | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/i18next-node-fs-backend | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/i18next-node-fs-backend. | ||
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/i18next-node-fs-backend/index.d.ts) | ||
````ts | ||
// Type definitions for i18next-node-fs-backend 2.1 | ||
// Project: https://github.com/i18next/i18next-node-fs-backend | ||
// Definitions by: Cyril Schumacher <https://github.com/cyrilschumacher> | ||
// Silas Rech <https://github.com/lenovouser> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
// TypeScript Version: 2.4 | ||
Additional Details | ||
* Last updated: Mon, 19 Aug 2019 17:51:13 GMT | ||
* Dependencies: @types/i18next | ||
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. | ||
* @type {string} | ||
*/ | ||
loadPath: string; | ||
/** | ||
* @summary Path to post missing resources | ||
* @type {string} | ||
*/ | ||
addPath: string; | ||
/** | ||
* @summary jsonIndent to use when storing json files | ||
* @type {number} | ||
*/ | ||
jsonIndent: number; | ||
/** | ||
* @summary custom parser | ||
* @type {function} | ||
*/ | ||
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: Thu, 08 Jul 2021 14:23:03 GMT | ||
* Dependencies: [@types/i18next](https://npmjs.com/package/@types/i18next) | ||
* Global values: none | ||
# Credits | ||
These definitions were written by Cyril Schumacher <https://github.com/cyrilschumacher>, and Silas Rech <https://github.com/lenovouser>. | ||
These definitions were written by [Cyril Schumacher](https://github.com/cyrilschumacher), and [Silas Rech](https://github.com/lenovouser). |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
7116
0
86