@jswork/next-dd-promisfy

1.0.0 • Public • Published

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.

Package Sidebar

Install

npm i @jswork/next-dd-promisfy

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

5.03 kB

Total Files

5

Last publish

Collaborators

  • afeiship