@feizheng/next-dd-promisfy

1.0.4 • Public • Published

next-dd-promisfy

Promisfy for dingtalk.

installation

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

usage

import '@feizheng/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

Readme

Keywords

none

Package Sidebar

Install

npm i @feizheng/next-dd-promisfy

Weekly Downloads

2

Version

1.0.4

License

MIT

Unpacked Size

5.35 kB

Total Files

6

Last publish

Collaborators

  • afeiship