New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

telegram-webapp-types

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

telegram-webapp-types

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

latest
Source
npmnpm
Version
1.0.8
Version published
Maintainers
1
Created
Source

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

npmyarn
npm install telegram-bots-webapps-typesyarn 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.

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

  • Add the following

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

Keywords

typescript

FAQs

Package last updated on 20 May 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts