Skip to content
This repository has been archived by the owner on Apr 21, 2020. It is now read-only.

Commit

Permalink
init (2.4.0)
Browse files Browse the repository at this point in the history
  • Loading branch information
SgLy committed Nov 19, 2018
1 parent 3f972da commit ed41548
Show file tree
Hide file tree
Showing 7 changed files with 12,946 additions and 1 deletion.
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,15 @@
# api-typings
# Wechat MiniProgram API Typings

Type definitions for APIs of Wechat Mini Program in TypeScript

## Install

```
npm install miniprogram-api-typings
```

or specify a base library version:

```
npm install [email protected]
```
15 changes: 15 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "miniprogram-api-typings",
"version": "2.4.0",
"description": "Type definitions for APIs of Wechat Mini Program in TypeScript",
"repository": {
"type": "git",
"url": "git+https://github.com/wechat-miniprogram/api-typings.git"
},
"author": "wechat-miniprogram",
"license": "MIT",
"bugs": {
"url": "https://github.com/wechat-miniprogram/api-typings/issues"
},
"homepage": "https://github.com/wechat-miniprogram/api-typings#readme"
}
1 change: 1 addition & 0 deletions types/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/// <reference path="./wx/index.d.ts" />
13 changes: 13 additions & 0 deletions types/wx/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/// <reference path="./lib.wx.app.d.ts" />
/// <reference path="./lib.wx.page.d.ts" />
/// <reference path="./lib.wx.api.d.ts" />

declare type IAnyObject = Record<string, any>

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>>

Loading

0 comments on commit ed41548

Please sign in to comment.