1
0
Fork 0
Types definition generator for @mtproto/core package https://npmjs.com/package/@types/mtproto__core
This repository has been archived on 2025-09-14. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
Find a file
2022-11-05 23:51:00 +04:00
.vscode Codegen v1 2022-11-05 22:32:31 +04:00
src Fix for dts linter 2022-11-05 23:51:00 +04:00
test Codegen v1 2022-11-05 22:32:31 +04:00
.eslintrc.cjs Codegen v1 2022-11-05 22:32:31 +04:00
.gitignore Codegen v1 2022-11-05 22:32:31 +04:00
babel.config.cjs Codegen v1 2022-11-05 22:32:31 +04:00
jest.config.js Codegen v1 2022-11-05 22:32:31 +04:00
LICENSE.md Codegen v1 2022-11-05 22:32:31 +04:00
package-lock.json Codegen patch 2022-11-05 23:02:22 +04:00
package.json Codegen patch 2022-11-05 23:02:22 +04:00
README.md Fix for dts linter 2022-11-05 23:51:00 +04:00
tsconfig.json Codegen v1 2022-11-05 22:32:31 +04:00

Telegram Core API (MTProto) types generator for @mtproto/core npm package

Types definitions generator for https://mtproto-core.js.org/.

Made for https://github.com/DefinitelyTyped/DefinitelyTyped/pull/63089

Features

  • Methods (params and results)
  • Constuctors
  • Interfaces
  • Human-friendly description of interfaces params (TODO: scrape from https://core.telegram.org/ docs)

Usage

npm run build && npm run start

It downloads latest schema from https://core.telegram.org/schema/json, parses it and converts to TypeScript definitions. Then it writes result to '../index.d.ts' file (this project is intended to be used inside DefinitelyTyped_repository/types/mtproto__core/codegen/ directory).

License

MIT

Project structure auto-generated by Scaffold.