update node modules

This commit is contained in:
s2
2020-07-20 16:20:39 +02:00
parent dcb748f037
commit f9fb05e4db
906 changed files with 124011 additions and 93468 deletions

42
node_modules/i18next/index.d.ts generated vendored
View File

@@ -99,6 +99,12 @@ export interface InterpolationOptions {
* @default 1000
*/
maxReplaces?: number;
/**
* If true, it will skip to interpolate the variables
* @default false
*/
skipOnVariables?: boolean;
}
export interface ReactOptions {
@@ -119,14 +125,14 @@ export interface ReactOptions {
defaultTransParent?: string;
/**
* Set which events trigger a re-render, can be set to false or string of events
* @default 'languageChanged loaded'
* @default 'languageChanged'
*/
bindI18n?: string | false;
/**
* Set which events on store trigger a re-render, can be set to false or string of events
* @default 'added removed'
* @default ''
*/
bindStore?: string | false;
bindI18nStore?: string | false;
/**
* Set fallback value for Trans components without children
* @default undefined
@@ -190,16 +196,28 @@ export interface InitOptions {
fallbackLng?: false | FallbackLng;
/**
* Array of allowed languages
* DEPRECATED use supportedLngs
* @default false
*/
whitelist?: false | string[];
/**
* If true will pass eg. en-US if finding en in whitelist
* DEPRECTADED use nonExplicitSupportedLngs
* @default false
*/
nonExplicitWhitelist?: boolean;
nonExplicitWhiteliest?: boolean;
/**
* Array of allowed languages
* @default false
*/
supportedLngs?: false | string[];
/**
* If true will pass eg. en-US if finding en in supportedLngs
* @default false
*/
nonExplicitSupportedLngs?: boolean;
/**
* Language codes to lookup, given set language is
@@ -688,6 +706,11 @@ export class ResourceStore {
* Gets fired when resources got added or removed
*/
on(event: 'added' | 'removed', callback: (lng: string, ns: string) => void): void;
/**
* Remove event listener
* removes all callback when callback not specified
*/
off(event: 'added' | 'removed', callback?: (lng: string, ns: string) => void): void;
}
export interface Services {
@@ -845,7 +868,7 @@ export interface i18n {
/**
* Returns a resource data by language.
*/
getDataByLanguage(lng: string): { translation: { [key: string]: string } };
getDataByLanguage(lng: string): { translation: { [key: string]: string } } | undefined;
/**
* Returns a t function that defaults to given language or namespace.
@@ -863,7 +886,7 @@ export interface i18n {
/**
* Is set to the current detected or set language.
* If you need the primary used language depending on your configuration (whitelist, load) you will prefer using i18next.languages[0].
* If you need the primary used language depending on your configuration (supportedLngs, load) you will prefer using i18next.languages[0].
*/
language: string;
@@ -961,8 +984,9 @@ export interface i18n {
/**
* Remove event listener
* removes all callback when callback not specified
*/
off(event: string, listener: (...args: any[]) => void): void;
off(event: string, listener?: (...args: any[]) => void): void;
/**
* Gets one value by given key.