telegram-webapp-types
TypeScript icon, indicating that this package has built-in type declarations

1.0.8 • Public • Published

Telegram Web Apps for Bots TypeScript typings

TypeScript's typings for Telegram Web Apps for Bots. See https://core.telegram.org/bots/webapps

Usage

Install the package

npm yarn
npm install telegram-bots-webapps-types yarn add telegram-bots-webapps-types

If you are working on a TypeScript project

Include the types file inside your tsconfig.json file like this:

{
  "compilerOptions": {
+   "typeRoots": [
+     "./node_modules/@types",
+     "./node_modules/telegram-bots-webapps-types"
+   ]
  }
}

If you are working on a JavaScript project

This step does not add types to your project, but it improves your autocompletion experience. This typically works with all modern editors & IDEs. If you encounter an issue, check the documentation for your editor.

  1. Create the jsconfig.json file at the root of your project.

  2. Add the following

{
  "compilerOptions": {
    "typeRoots": [
      "./node_modules/@types",
      "./node_modules/telegram-bots-webapps-types"
    ]
  }
}
  1. You should be able to get autocompletion working inside your JavaScript project.

/telegram-webapp-types/

    Package Sidebar

    Install

    npm i telegram-webapp-types

    Weekly Downloads

    7

    Version

    1.0.8

    License

    MIT

    Unpacked Size

    19.2 kB

    Total Files

    3

    Last publish

    Collaborators

    • sergeychernov