Is there any typescript definition file for ng-i18next?

Viewed 47

I'm looking for a typescript definition file for the abstractions that are defined within the library ng-i18next (i18next for angularjs).

Looking through the project's page I didn't find anything. And when I go to issues -> ask, I landed here at SO.

I can't find it there neither using npm install ng-i18next plus exploring the file system with the downloaded files.

So basically no luck disregarding the "interface" used for searching a typescript definition file. Perhaps it doesn't exists.

  1. Via web-gui

enter image description here

  1. Via local-cli enter image description here

Any data about the whereabout of this file will be appreciated.

1 Answers

Answer: https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/ng-i18next/index.d.ts

Research: The repository https://github.com/i18next/ng-i18next has a link for typings, and it redirects to https://www.npmjs.com/package/typings, a deprecated repository that used to store typings, and it says in it's readme.md the following message:

Starting from TypeScript 2.0, users can install typings using npm install @types/<package>. These typings are coming from DefinitelyTyped.

So, in that repository (https://github.com/DefinitelyTyped/DefinitelyTyped) if you look for ng-i18next, it appears, nevertheless, its interface is just has options: any, so it doesn't give you any help.

Related