New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

miniprogram-api-typings

Package Overview
Dependencies
Maintainers
1
Versions
88
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

miniprogram-api-typings - npm Package Compare versions

Comparing version 2.8.2 to 2.8.3-1

10

CHANGELOG.md

@@ -0,1 +1,11 @@

## 2019-10-10 v2.8.3-1
- 修复注释文档中不可用的链接
- 组件实例类型支持 `Partial` 的自定义方法([用例](https://github.com/wechat-miniprogram/api-typings/blob/master/test/issue.test.ts#L170-L185))
## 2019-09-19 v2.8.3
- 同步 API 定义到基础库 2.8.3
- `getApp` 支持范型(#77)
- 修正一些接口错误(#73, #75, #79)
- 补齐 `require`, `exports`, `module.exports` 定义,以支持在没有 `@types/node` 下编译
## 2019-09-10 v2.8.2

@@ -2,0 +12,0 @@ - 同步 API 定义到基础库 2.8.2

13

package.json
{
"name": "miniprogram-api-typings",
"version": "2.8.2",
"version": "2.8.3-1",
"description": "Type definitions for APIs of Wechat Mini Program in TypeScript",

@@ -8,4 +8,5 @@ "main": "./index.d.ts",

"scripts": {
"test": "mkdir -p ~/.dts && dtslint . --localTs ./node_modules/typescript/lib",
"dtslint": "npm test"
"test": "npm run tsd && npm run tslint",
"tsd": "tsd",
"tslint": "tslint --project ."
},

@@ -24,5 +25,9 @@ "repository": {

"devDependencies": {
"dtslint": "^0.9.1",
"tsd": "^0.9.0",
"tslint": "^5.20.0",
"typescript": "^3.5.3"
},
"tsd": {
"directory": "test"
},
"files": [

@@ -29,0 +34,0 @@ "LICENSE",

@@ -42,3 +42,3 @@ # Wechat Mini Program API Typings

We use [`dtslint`](https://github.com/Microsoft/dtslint) to check if this definition is working properly. All test cases are under folder `test`.
We use [`tsd`](https://github.com/SamVerschueren/tsd) to check if this definition is working properly. All test cases are under folder `test`.

@@ -45,0 +45,0 @@ To perform an automated test, clone this repo, `npm install --save-dev` and `npm test`.

@@ -41,3 +41,3 @@ # 微信小程序定义文件

本定义文件使用 [`dtslint`](https://github.com/Microsoft/dtslint) 进行测试,所有的测试样例放在 `test` 目录下。
本定义文件使用 [`tsd`](https://github.com/SamVerschueren/tsd) 进行测试,所有的测试样例放在 `test` 目录下。

@@ -44,0 +44,0 @@ 想执行测试的话,克隆本项目并完成 `npm install --save-dev` 后执行 `npm test` 即可。

@@ -243,3 +243,3 @@ /*! *****************************************************************************

interface GetApp {
(opts?: GetAppOption): TrivialInstance
<T = IAnyObject>(opts?: GetAppOption): Instance<T>
}

@@ -246,0 +246,0 @@ }

@@ -16,3 +16,3 @@ /*! *****************************************************************************

TProperty extends PropertyOption,
TMethod extends MethodOption
TMethod extends Partial<MethodOption>
> = InstanceProperties &

@@ -19,0 +19,0 @@ InstanceMethods<TData> &

@@ -125,3 +125,5 @@ /*! *****************************************************************************

D
>
> & {
getOpenerEventChannel(): EventChannel,
}

@@ -128,0 +130,0 @@ interface Data<D extends DataOption> {

@@ -5,2 +5,3 @@ ## 所有可用版本

-|-|-
[v2.8.3](https://developers.weixin.qq.com/miniprogram/dev/framework/release/#v2-8-3-2019-09-17) | [2.8.3-1](https://www.npmjs.com/package/miniprogram-api-typings/v/2.8.3-1) | `npm install miniprogram-api-typings@2.8.3-1`
[v2.8.2](https://developers.weixin.qq.com/miniprogram/dev/framework/release/#v2-8-2-2019-08-30) | [2.8.2](https://www.npmjs.com/package/miniprogram-api-typings/v/2.8.2) | `npm install miniprogram-api-typings@2.8.2`

@@ -7,0 +8,0 @@ [v2.8.1](https://developers.weixin.qq.com/miniprogram/dev/framework/release/#v2-8-1-2019-08-22) | [2.8.1](https://www.npmjs.com/package/miniprogram-api-typings/v/2.8.1) | `npm install miniprogram-api-typings@2.8.1`

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc