Skip to content

Type definitions of Wechat Mini Program in TypeScript

License

Notifications You must be signed in to change notification settings

Locter9001/miniprogram-type

 
 

Repository files navigation

Wechat Mini Program Type

npm license downloads

Type definitions of Wechat Mini Program in TypeScript

Forked from https://github.com/wechat-miniprogram/api-typings Version 3.10.0

Quick fix bug

中文文档

Install

By standalone npm package

npm install -D miniprogram-type

After installed, reference by Triple-Slash Directives:

If you use default set:

// tsconfig.json
"typeRoots": [
  "./typings"
]

Please use:

/// <reference path="../node_modules/miniprogram-api-typings/index.d.ts" />

Automated tests

We use tsd to check if this definition is working properly. All test cases are under folder test.

To perform an automated test, clone this repo, npm install -D and npm test.

If you have test case that fails the test, an issue or PR will be great. Strong test case that passes are also welcomed.

About

Type definitions of Wechat Mini Program in TypeScript

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 98.3%
  • SCSS 1.7%