1.2.0 • Published 28 days ago

telegram-webapps-types-new v1.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
28 days ago

Telegram Web Apps for Bots TypeScript typings

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

Usage

Install the package

Using npm

npm install telegram-webapps-types-new

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-webapps-types-new"
+   ]
  }
}

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-webapps-types-new"
    ]
  }
}
  1. You should be able to get autocompletion working inside your JavaScript project.
1.2.0

28 days ago

1.1.1

3 months ago

1.1.0

4 months ago

1.0.6

4 months ago

1.0.5

7 months ago

1.0.4

10 months ago

1.0.3

10 months ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago