forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
i18next-node-fs-backend.d.ts
58 lines (49 loc) · 1.44 KB
/
i18next-node-fs-backend.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
// Type definitions for i18next-node-fs-backend
// Project: https://github.com/i18next/i18next-node-fs-backend
// Definitions by: Cyril Schumacher <https://github.com/cyrilschumacher>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
///<reference path="../i18next/i18next-2.0.17.d.ts"/>
declare namespace I18next {
interface I18nextOptions extends i18nextNodeFsBackEnd.I18nextOptions { }
}
declare namespace i18nextNodeFsBackEnd {
/**
* @summary Options for "i18next-node-fs-backend".
* @interface
*/
interface i18nextNodeFsBackEndOptions {
// path where resources get loaded from
/**
* @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 Options for "i18next".
* @interface
*/
interface I18nextOptions {
backend?: i18nextNodeFsBackEndOptions;
}
}
declare module "i18next-node-fs-backend" {
import * as i18next from "i18next";
class BackEnd {
constructor(services?: any, options?: Object);
init(options?: Object): void;
}
var out: typeof BackEnd;
export = out;
}