Skip to content

Commit

Permalink
i18next.t("foo", {returnObjects: true}) returns an Object (Definite…
Browse files Browse the repository at this point in the history
…lyTyped#9077)

* `t("foo", {returnObjects: true})` returns an Object

* `t("foo", {returnObjects: true})` returns an Object

* () will return Object you will have to cast it to any to access properties
  • Loading branch information
nalbion authored and vvakame committed Apr 25, 2016
1 parent 53a84ee commit 129f08f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion i18next/i18next.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ declare namespace I18next {

getFixedT(lng?:string, ns?:string|string[]):TranslationFunction;

t(key:string, options?:TranslationOptions):string;
t(key:string, options?:TranslationOptions):string|any|Array<any>;

exists():boolean;

Expand Down

0 comments on commit 129f08f

Please sign in to comment.