Socket
Book a DemoInstallSign in
Socket

tt-api-typings

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tt-api-typings

字节小程序TS类型声明文件

0.0.10
latest
Source
npmnpm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

tt-api-typings

由于官方还未在npm上发布TS的类型定义包,但是习惯用TS开发项目,所以有了这个

字节小程序API(不包含游戏端)的TS类型定义文件, 和字节开发者工具中的定义文件同步。

安装

npm:

npm install tt-api-typings

yarn:

yarn add tt-api-typings

引入

  • 手动导入:
  • import "tt-api-typings"
  • tsconfig.json中指定types:
  • types: ["tt-api-typings"]
  • *.d.ts文件中通过 三斜杠指令 引用
  • /// <reference path="node_modules/tt-api-typings/index.d.ts" />

更新日志

参考 CHANGELOG.md

贡献

若与官方API同步不及时,或是发现问题,欢迎提issue 或 PR

Keywords

tt

FAQs

Package last updated on 20 Apr 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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.