This repository has been archived by the owner on Apr 21, 2020. It is now read-only.
forked from wechat-miniprogram/api-typings
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
12,946 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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] | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/// <reference path="./wx/index.d.ts" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>> | ||
|
Oops, something went wrong.