Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

telegram-webapps-types-new

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

telegram-webapps-types-new

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

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
130
decreased by-3.7%
Maintainers
1
Weekly downloads
 
Created
Source

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.

Keywords

FAQs

Package last updated on 30 Dec 2022

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc