Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
miniprogram-api-typings2
Advanced tools
Forked from miniprogram-api-typings and resolve behavior type with a controversial way
微信小程序 API 的 TypeScript 类型定义文件
npm install @types/wechat-miniprogram
或:
npm install miniprogram-api-typings
安装后手动导入:
import 'miniprogram-api-typings';
或者在 ts 配置中指定:
tsconfig.json
中指定 types: ["miniprogram-api-typings"]
或者通过 三斜杠指令 引用:
/// <reference path="node_modules/miniprogram-api-typings/index.d.ts" />
参考 CHANGELOG.md
API 的定义文件(lib.wx.api.d.ts
)是随 文档 一起自动生成的,如果发现了 API 接口的定义错误,请提一个 issue 给我们,关于 API 的 PR 将 不会 被接受。
如果有针对页面(Page
)、自定义组件(Component
)等接口的 bug 和建议,欢迎 PR 或提一个 issue 给我们。非常感谢!
本定义文件使用 tsd
进行测试,所有的测试样例放在 test
目录下。
想执行测试的话,克隆本项目并完成 npm install --save-dev
后执行 npm test
即可。
如果您发现了不能通过自动化测试的测试样例,可以提交 PR 或者提一个 issue。当然,能通过自动化测试的强有力的测试样例也是欢迎的。
FAQs
Forked from miniprogram-api-typings and resolve behavior type with a controversial way
The npm package miniprogram-api-typings2 receives a total of 0 weekly downloads. As such, miniprogram-api-typings2 popularity was classified as not popular.
We found that miniprogram-api-typings2 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.