Typed We App Save Abandoned

TypeScript declaration file for WeApp API

Project README

⚠ ARCHIVED since tencent finally got their own offical type definitions for WeApp

so goodbye and thanks for all the contributors

typed-we-app

TypeScript declaration file for WeApp API

NPM

Install

  • With npm installed

    npm install typed-we-app --save-dev
    
  • With typings installed

    typings install github:Emeryao/typed-we-app -SG
    
  • Or get the declaration file here and include it to your project

About

Based on the official WeApp API documentation
Wechat Web DevTool Version 1.01.1712150
WAService.js Version 1.7.0

Sample

  • TypeScript
wx.request({
    url: 'request/url',
    success: (res) => {
        console.log(res.data);
    }
});

let ctx = wx.createCanvasContext();
ctx.fillText('hello', 0, 0);

let actions = ctx.getActions();
wx.drawCanvas({
    canvasId: 'canvas-id',
    actions
});

wx.getBLEDeviceServices({
    deviceId: '',
    success: (res) => {
        console.log(res.services[0].uuid);
    },
});

Last Update

2019.05.19

Open Source Agenda is not affiliated with "Typed We App" Project. README Source: emeryao/typed-we-app
Stars
66
Open Issues
1
Last Commit
4 years ago
License
MIT

Open Source Agenda Badge

Open Source Agenda Rating