0.0.10 • Published 1 year ago

tt-api-typings v0.0.10

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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

0.0.10

1 year ago

0.0.9

1 year ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago