peter4431 / tt-api-typings

字节小程序TS类型定义文件

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

字节小程序TS类型定义文件

License:MIT License


Languages

Language:JavaScript 62.4%Language:TypeScript 37.6%