Skip to content

afeiship/next-dd-promisfy

Repository files navigation

next-dd-promisfy

Promisfy for dingtalk.

version license size download

installation

npm install -S @jswork/next-dd-promisfy

usage

import '@jswork/next-dd-promisfy';

const getPhoneInfo = nx.ddPromisfy(dd.device.base.getPhoneInfo, { context: dd.device.base });

// call the promisfy function
getPhoneInfo()
  .then(res=>{
    console.log(res);
  }).catch(err=>{
    console.log(err);
  });

resources

license

Code released under the MIT license.