1.0.0 • Published 3 years ago

@jswork/next-dd-promisfy v1.0.0

Weekly downloads
1
License
MIT
Repository
-
Last release
3 years ago

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.