tdlib-types v0.1001008014.0
tdlib-types
This npm package provides TypeScript and Flow types for TDLib.
These types can be used with tdl.
To install the types for e.g. TDLib v1.8.5, run:
$ npm install --save-dev tdlib-types@td-1.8.5The other available versions of tdlib-types are listed in the "npm tags"
section below. You can also see the available versions by running $ npm info tdlib-types.
Note: If you use TypeScript and get errors in
.d.tsfiles, setskipLibChecktotruein thetsconfig.jsonfile (this is the default when usingtsc --init).
Verison naming
The package is published to npm under versions 0.wxxxyyyzzz.v, where
x/y/zcorrespond to thex.y.zTDLib version with leading zeros appended.wcorresponds to the major version (the revision) oftdlib-typesitself, newer revisions may contain breaking changes of the typings.wis always the same for all TDLib versions.vcorresponds to the minor version oftdlib-typesitself.vis specific to a TDLib version. These updates may include fixes in case some of the typings were broken.- The major version of the npm package is always 0.
Some examples:
0.1001006000.0is types for TDLib v1.6.0 (tdlib-typesmajor rev. 1, patch 0).0.4001007002.3- TDLib v1.7.2 (tdlib-typesmajor rev. 4, patch 3).0.24001004012.1- TDLib v1.4.12 (tdlib-typesmajor rev. 24, patch 1).
This naming scheme is similar to prebuilt-tdlib, but a bit more complicated.
For convenicene, td-X npm dist-tags are provided, so that types for the desired
TDLib version can be simply installed using, for example, npm i -D tdlib-types@td-1.7.0
for TDLib v1.7.0 or npm i -D tdlib-types@td-1.8.5 for TDLib v1.8.5.
In case a major version of tdlib-types is released, a git tag
tdlib-types@w is published to the tdl repository. Otherwise, the releases of
tdlib-types are not git-tagged.
The current major version of tdlib-types is 1.
In the past, a different naming scheme was used without the patch (z) tdlib
version.
If you use Flow and don't have fluture installed, add the following to .flowconfig:
[declarations]
<PROJECT_ROOT>/node_modules/.*For information about the TL -> TypeScript/Flow translator, see GENERATOR.md.
npm tags
(tdlib commit d9cfcf88fe4ad06dae1716ce8f66bbeb7f9491d9)
2 years ago
3 years ago
3 years ago
4 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago