tt-api-typings
TypeScript icon, indicating that this package has built-in type declarations

0.0.10 • Public • Published

tt-api-typings

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

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

安装

npm:

npm install tt-api-typings

yarn:

yarn add tt-api-typings

引入

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

更新日志

参考 CHANGELOG.md

贡献

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

Readme

Keywords

Package Sidebar

Install

npm i tt-api-typings

Weekly Downloads

2

Version

0.0.10

License

MIT

Unpacked Size

192 kB

Total Files

176

Last publish

Collaborators

  • zhuxian