Open jeroenlandheer opened 4 years ago
Additionally, it would seem that this:
export interface IGetTranslateFunctionResponse {
(textKey: string, params?: string[], comment?: string): string;
}
should be like this, or something:
export interface IGetTranslateFunctionResponse {
(textKey: string, params?: { [key: string]: string }, comment?: string): string;
}
(based on looking at the source code)
Any updates on this? index.d.ts
still appears to be incorrect, at least with regards to IGetTranslateFunctionResponse
.
I'm having some issues here to get the
i18SnState
reducer to get into mycombineReducers()
function. TypeScript complains that the type is not compatible withReducer<IreduxI18nState>
because of the state parameter not acceptingundefined
in the definition.My workaround is this line of code:
I think (not 100% sure) this can be solved by changing the signature of the this line in
index.d.ts
:to