-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathindex.d.ts
43 lines (33 loc) · 1.02 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*
* @Author: Bin
* @Date: 2021-07-29
* @FilePath: /react-native-qq-lib/index.d.ts
*/
import React from 'react';
export type QQLibShareType = 'news' | 'text' | 'image';
export interface QQLibSharePropTypes {
type: QQLibShareType,
}
export interface QQLibShareNewsPropTypes extends QQLibSharePropTypes {
title: string,
description: string,
webpageUrl: string,
imageUrl: string,
}
export interface QQLibShareTextPropTypes extends QQLibSharePropTypes {
text: string,
}
export interface QQLibShareImagePropTypes extends QQLibSharePropTypes {
imageUrl: string,
imageLocalUrl: string,
}
declare const login: (scopes?: string) => Promise<any>;
declare const shareToQQ: (data: QQLibShareNewsPropTypes | QQLibShareTextPropTypes | QQLibShareImagePropTypes) => Promise<any>;
declare const shareToQzone: (data: QQLibShareNewsPropTypes | QQLibShareTextPropTypes | QQLibShareImagePropTypes) => Promise<any>;
declare const logout: () => {};
export {
login,
shareToQQ,
shareToQzone,
logout,
};