miniprogram-api-typings
Advanced tools
Comparing version 2.4.1 to 2.4.2-1
{ | ||
"name": "miniprogram-api-typings", | ||
"version": "2.4.1", | ||
"version": "2.4.2-1", | ||
"description": "Type definitions for APIs of Wechat Mini Program in TypeScript", | ||
@@ -5,0 +5,0 @@ "main": "./index.d.ts", |
@@ -1,15 +0,25 @@ | ||
# Wechat MiniProgram API Typings | ||
# 微信小程序定义文件 | ||
Type definitions for APIs of Wechat Mini Program in TypeScript | ||
> [English version](./README-en.md) | ||
## Install | ||
[![npm](https://badge.fury.io/js/miniprogram-api-typings.svg)](https://badge.fury.io/js/miniprogram-api-typings) | ||
``` | ||
微信小程序 API 的 TypeScript 类型定义文件 | ||
## 安装 | ||
通过 npm 安装: | ||
```bash | ||
# 安装对应最新基础库的定义文件 | ||
npm install miniprogram-api-typings | ||
``` | ||
or specify a base library version: | ||
或者通过版本号指定一个基础库版本: | ||
```bash | ||
# 安装对应基础库版本 2.4.1 的定义文件 | ||
npm install miniprogram-api-typings@2.4.1 | ||
``` | ||
``` | ||
npm install miniprogram-api-typings@2.4.0 | ||
``` | ||
## 贡献 | ||
定义文件是随 [文档](https://developers.weixin.qq.com/miniprogram/dev/index.html) 一起自动生成的,所以所有的 PR 都将 __不会__ 被接受。如果您有 bug 反馈或建议,请提一个 issue 给我们。非常感谢! |
@@ -0,1 +1,11 @@ | ||
/*! ***************************************************************************** | ||
Copyright (c) 2018 Tencent, Inc. All rights reserved. | ||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
***************************************************************************** */ | ||
/// <reference path="./lib.wx.app.d.ts" /> | ||
@@ -5,10 +15,8 @@ /// <reference path="./lib.wx.page.d.ts" /> | ||
declare type IAnyObject = Record<string, any> | ||
declare type IAnyObject = Record<string, any>; | ||
declare type KVInfer<T> = { | ||
[K in keyof T]: T[K] | ||
} | ||
declare type KVInfer<T> = { [K in keyof T]: T[K] }; | ||
declare type Void<T> = T | undefined | null | ||
type PartialOptional<T, K extends keyof T> = Partial<Pick<T, K>> & Pick<T, Exclude<keyof T, K>> | ||
declare type Void<T> = T | undefined | null; | ||
type PartialOptional<T, K extends keyof T> = Partial<Pick<T, K>> & | ||
Pick<T, Exclude<keyof T, K>>; |
Sorry, the diff of this file is too big to display
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
495882
11
13140
25
1