Skip to content

Commit

Permalink
Add tdlib-types for TDLib v1.8.14
Browse files Browse the repository at this point in the history
  • Loading branch information
eilvelia committed Jun 26, 2023
1 parent 838d39d commit 64eb687
Show file tree
Hide file tree
Showing 7 changed files with 8,503 additions and 22 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -392,10 +392,10 @@ While `tdl` works with any TDLib version (above the requirement), the types have
to be installed specifically for the TDLib version you use.

`tdlib-types` is installed by running `npm i -D tdlib-types@td-<TDLIB_VERSION>`.
For example, to install `tdlib-types` for TDLib v1.8.12, run `npm i -D tdlib-types@td-1.8.12`
For example, to install `tdlib-types` for TDLib v1.8.14, run `npm i -D tdlib-types@td-1.8.14`
To get the list of available versions of `tdlib-types`, run `npm info tdlib-types dist-tags`.

The latest supported version of TDLib in `tdlib-types` is v1.8.12
The latest supported version of TDLib in `tdlib-types` is v1.8.14
(the `prebuilt-tdlib@stable` tag installs types for TDLib v1.8.0).

The types can be imported:
Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/tdl/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
},
"devDependencies": {
"node-gyp": "^9.4.0",
"tdlib-types": "^0.1001008012.0"
"tdlib-types": "^0.1001008014.0"
},
"author": "Bannerets <comonoid@protonmail.com> (https://github.com/Bannerets)",
"license": "MIT",
Expand Down
30 changes: 16 additions & 14 deletions packages/tdlib-types/README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
## tdlib-types
# 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:
To install the types for e.g. TDLib v1.8.14, run:

```console
$ npm install --save-dev tdlib-types@td-1.8.5
$ npm install --save-dev tdlib-types@td-1.8.14
```

The 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 dist-tags`.
The available versions of `tdlib-types` can be found by running `$ npm info tdlib-types dist-tags`
or in the "npm tags" section below.

> **Note**: If you use TypeScript and get errors in `.d.ts` files, set
> `skipLibCheck` to `true` in the `tsconfig.json` file
Expand All @@ -20,7 +20,12 @@ section below. You can also see the available versions by running `$ npm info td
[TDLib]: https://github.com/tdlib/td
[tdl]: https://github.com/Bannerets/tdl

### Versioning conventions
---

For information about the TL -> TypeScript/Flow translator, see
[GENERATOR.md](GENERATOR.md).

## Versioning conventions

> **Note**: This information is mostly for maintaining `tdlib-types`, it
> isn't necessary for using this package. Just use the dist-tags.
Expand Down Expand Up @@ -67,17 +72,14 @@ If you use Flow and don't have fluture installed, add the following to `.flowcon
<PROJECT_ROOT>/node_modules/.*
```

---

For information about the TL -> TypeScript/Flow translator, see
[GENERATOR.md](GENERATOR.md).

### npm tags
## npm tags

- [![npm](https://img.shields.io/npm/v/tdlib-types/latest.svg)](https://www.npmjs.com/package/tdlib-types)
- [![npm](https://img.shields.io/npm/v/tdlib-types/stable.svg)](https://www.npmjs.com/package/tdlib-types)
- [![npm](https://img.shields.io/npm/v/tdlib-types/td-1.8.12.svg)](https://www.npmjs.com/package/tdlib-types/v/td-1.8.12) (tdlib commit [70bee089d492437ce931aa78446d89af3da182fc](https://github.com/tdlib/td/commit/70bee089d492437ce931aa78446d89af3da182fc))
- [![npm](https://img.shields.io/npm/v/tdlib-types/td-1.8.5.svg)](https://www.npmjs.com/package/tdlib-types/v/td-1.8.5) (tdlib commit [d9cfcf88fe4ad06dae1716ce8f66bbeb7f9491d9](https://github.com/tdlib/td/commit/d9cfcf88fe4ad06dae1716ce8f66bbeb7f9491d9))
<!-- Add new versions below -->
- [![npm](https://img.shields.io/npm/v/tdlib-types/td-1.8.14.svg)](https://www.npmjs.com/package/tdlib-types/v/td-1.8.14) tdlib [66234ae2537a99ec0eaf7b0857245a6e5c2d2bc9](https://github.com/tdlib/td/commit/66234ae2537a99ec0eaf7b0857245a6e5c2d2bc9)
- [![npm](https://img.shields.io/npm/v/tdlib-types/td-1.8.12.svg)](https://www.npmjs.com/package/tdlib-types/v/td-1.8.12) tdlib [70bee089d492437ce931aa78446d89af3da182fc](https://github.com/tdlib/td/commit/70bee089d492437ce931aa78446d89af3da182fc)
- [![npm](https://img.shields.io/npm/v/tdlib-types/td-1.8.5.svg)](https://www.npmjs.com/package/tdlib-types/v/td-1.8.5) tdlib [d9cfcf88fe4ad06dae1716ce8f66bbeb7f9491d9](https://github.com/tdlib/td/commit/d9cfcf88fe4ad06dae1716ce8f66bbeb7f9491d9)
- [![npm](https://img.shields.io/npm/v/tdlib-types/td-1.8.0.svg)](https://www.npmjs.com/package/tdlib-types/v/td-1.8.0)
- [![npm](https://img.shields.io/npm/v/tdlib-types/td-1.7.0.svg)](https://www.npmjs.com/package/tdlib-types/v/td-1.7.0)
- [![npm](https://img.shields.io/npm/v/tdlib-types/td-1.6.0.svg)](https://www.npmjs.com/package/tdlib-types/v/td-1.6.0)
Expand Down
2 changes: 1 addition & 1 deletion packages/tdlib-types/generate.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const fsp = fs.promises
const readline = require('readline')

const PKG_NAME = 'tdlib-types'
const LATEST_VERSION = 'v1.8.12'
const LATEST_VERSION = 'v1.8.14'
const LATEST_STABLE = 'v1.8.0'
const REV = '1'

Expand Down
2 changes: 1 addition & 1 deletion packages/tdlib-types/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tdlib-types",
"version": "0.1001008012.0",
"version": "0.1001008014.0",
"description": "TypeScript and Flow types for TDLib",
"main": "index.js",
"types": "index.d.ts",
Expand Down
Loading

0 comments on commit 64eb687

Please sign in to comment.