Andy
947a8fb761
Enable strictFunctionTypes ( #20373 )
2017-10-06 14:03:03 -07:00
Andy
bd863e9ed2
i18next/v2: Fix lint ( #20212 )
2017-10-02 13:00:54 -07:00
Andy
b4a4de5413
i18next/v2: Fix test ( #19282 )
...
* i18next/v2: Fix test
* Fix lint
2017-08-28 11:45:36 -07:00
Andy
eb3a5d2ad9
i18next: Fix compile errors ( #19205 )
2017-08-28 07:51:50 -07:00
Andy
924fafffc0
Fix remaining lint errors ( #19166 )
2017-08-20 15:37:53 -07:00
Andy
5d6c651a1a
Apply stricter lint rules ( #19063 )
2017-08-17 14:53:41 -07:00
Giedrius Grabauskas
b4913f384e
Updated i18next types to v8.4 and added missing v2 version ( #17702 )
...
* undertaker-registry initial commit.
* Created index.d.ts for undertaker-registry
* Created tslint.json for undertaker-registry
* Created tests for undertaker-registry.
* Create tslint.json
* Moved v2 version and created initial files.
* Updated types of i18next.
* Locked versions for dependents.
* Improved tests.
* Fixed ts error.
* Updated to backwards compatible naming.
* Added missing event remover method.
* Fixed tslint errors.
* Added missing variables.
* Added missing compatibilityJSON argument.
* Fixed dtslint error.
* Updated naming and implemented TranslationOptions.
* Fixing and removed wrong implementation. Updating some comments.
* Creted FormatFunction type. TranslationOptionsBase changed to TranslationOptions.
* Updated interpolation options defaults in jsdocs.
* Wrapped all @default values with single-quotes.
* Updated FormatFunction type. Fixed tests.
* Fixed dtslint errors.
* Typescript 2.3 and changed to `object`.
* Added TypeScript 2.3 support.
* Added generics for TranslationFunction, `t` and `exists` methods.
* Created TranslationResult type with default `string` generic value.
* Added tests for generics. Updated return types for translation method.
* Updated `parseMissingKeyHandler` return type.
* TranslationFunction TResult default value changed to any.
* Removed references and ts 2.3 version from i18next-express-middleware.
* Removed reference and ts 2.3 version from i18next-node-fs-backend.
* Removed reference and ts 2.3 version from i18next-sprintf-postprocessor.
* Added mapping path to i18next/v2.
* Created TranslationFunction interface.
* Fixed dtslint errors.
* Fixed `callable-types` tslint error.
* Updated exists method type.
* Fixed tests for `exists` method.
* Removed ts 2.3 version and reference to i18next type.
2017-07-17 09:54:08 -07:00
Alen
bcfc7d0934
change interface of i18next as v8.4.2
2017-06-27 17:12:15 +08:00
Josh Goldberg
2bd01e84f7
Expanded Sinon's createStubInstance to allow a TType generic ( #16730 )
...
* Expanded Sinon's createStubInstance types
* Defaulted createStubInstance behavior to not use the better types
TType gets inferred to `{}` by default. Odd.
* Removed commented out typings
* Removed unnecessary imports from i18next-tests
* Added TS 2.2 notices
* Bumped TS versions to 2.3
* Consolidated optional types for StubbableType
* Update index.d.ts
2017-06-03 15:04:06 -07:00
Budi Irawan
15d14159ba
improve fallback language ( #16236 )
...
- add def for array of string
- add def for object list
2017-05-01 13:44:20 -07:00
mulles3008
038ab80ad1
Added wait to i18n.Options interface ( #16154 )
...
* Added wait to i18n.Options interface
Enables setting global wait-flag. Important for react-i18next>=3.1.0
(https://github.com/i18next/react-i18next/blob/master/CHANGELOG.md#310 )
* Added interface i18n.ReactOptions for options specific to react-i18next
2017-04-27 11:06:55 -07:00
Jan Klimke
8e24694620
Updated 18next exists method and added ability to use string interpolation arguments ( #16124 )
...
* Updated i18next extists function definition
and allow for additional interpolation options to be passed as TranslationOptions
* Updated 18next test
* i18next fixed typing of exists key parameter
* i18next Fixed test typo
2017-04-26 14:35:57 -07:00
Andy Hanson
354cec620d
Move all packages to a types directory
2017-03-24 14:27:52 -07:00