Gathering detailed insights and metrics for minigame-api-typings
Gathering detailed insights and metrics for minigame-api-typings
Gathering detailed insights and metrics for minigame-api-typings
Gathering detailed insights and metrics for minigame-api-typings
Type definitions for APIs of Wechat Mini Game in TypeScript
npm install minigame-api-typings
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
132 Stars
58 Commits
26 Forks
12 Watching
3 Branches
5 Contributors
Updated on 14 Nov 2024
Minified
Minified + Gzipped
TypeScript (96.65%)
JavaScript (3.35%)
Cumulative downloads
Total Downloads
Last day
-6.8%
11,833
Compared to previous day
Last week
-3.8%
66,383
Compared to previous week
Last month
-42.2%
280,589
Compared to previous month
Last year
-32.6%
4,045,412
Compared to previous year
微信小游戏 API 的 TypeScript 类型定义文件
1npm install minigame-api-typings
安装后手动导入:
import 'minigame-api-typings';
或者在 ts 配置中指定:
tsconfig.json
中指定 types: ["minigame-api-typings"]
或者通过 三斜杠指令 引用:
/// <reference path="node_modules/minigame-api-typings/index.d.ts" />
参考 CHANGELOG.md
API 的定义文件(lib.wx.api.d.ts
)是随 文档 一起自动生成的,如果发现了 API 接口的定义错误,请提一个 issue 给我们,关于 API 的 PR 将 不会 被接受。
本定义文件使用 tsd
进行测试,所有的测试样例放在 test
目录下。
想执行测试的话,克隆本项目并完成 npm install --save-dev
后执行 npm test
即可。
如果您发现了不能通过自动化测试的测试样例,可以提交 PR 或者提一个 issue。当然,能通过自动化测试的强有力的测试样例也是欢迎的。
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
3 existing vulnerabilities detected
Details
Reason
4 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 3
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2024-11-18
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More