JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 16
  • Score
    100M100P100Q55639F
  • License MIT

Generate TypeScript (and Flow) types for TDLib

Package Exports

  • tdl-install-types
  • tdl-install-types/src/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (tdl-install-types) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

tdl-install-types

A cli utility that generates TypeScript types for TDLib, potentially fetching the needed schema from the TDLib's GitHub repository. These types can be used with the tdl library.

This utility can be callied via npx.

By default, a tdlib-types.d.ts file is created that you can git-commit.

Usage

$ npx tdl-install-types [<options>] [<target>]

Examples:

$ npx tdl-install-types  # tries to use prebult-tdlib
$ npx tdl-install-types ./libtdjson.so  # generate types for this shared library
$ npx tdl-install-types 0ada45c3618108a62806ce7d9ab435a18dac1aab  # commit hash
$ npx tdl-install-types v1.8.0  # git tag in the TDLib repository

For more information, see npx tdl-install-types --help.