mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-16 19:09:18 +08:00
add missing function definition for jweixin (#22550)
* Update index.d.ts add wx.getLocalImgData definition * add getLocalImgData definition which was missed wx.getLocalImgData definition is missed, add it * fix trailing whitespace
This commit is contained in:
12
types/jweixin/index.d.ts
vendored
12
types/jweixin/index.d.ts
vendored
@@ -1,6 +1,7 @@
|
||||
// Type definitions for jweixin 1.0
|
||||
// Project: https://mp.weixin.qq.com/wiki/11/74ad127cc054f6b80759c40f77ec03db.html
|
||||
// Definitions by: taoqf <https://github.com/taoqf>
|
||||
// gomydodo <https://github.com/gomydodo>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
/* =================== USAGE ===================
|
||||
import * as wx from 'jweixin';
|
||||
@@ -245,6 +246,17 @@ declare namespace wx {
|
||||
* 下载图片接口
|
||||
*/
|
||||
function downloadImage(params: IdownloadImage): void;
|
||||
|
||||
interface IgetLocalImgData extends BaseParams {
|
||||
localId: string; // 图片的localID
|
||||
// localData是图片的base64数据,可以用img标签显示
|
||||
success(res: { localData: string }): void;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取本地图片接口
|
||||
*/
|
||||
function getLocalImgData(params: IgetLocalImgData): void;
|
||||
/*=============================图像接口================================*/
|
||||
/*=============================音频接口================================*/
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user