1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee

doc: 修复生成文档预览问题

This commit is contained in:
jaywcjlove 2020-07-24 14:00:21 +08:00
parent 4d23f71b5a
commit a1ef27db98

41
index.d.ts vendored
View File

@ -2,14 +2,10 @@
/// <reference lib="esnext" />
/**
* React Native Android/iOS
*/
declare module "@uiw/react-native-alipay" {
/**
*
* , https://docs.open.alipay.com/204/105301
*/
export interface OrderResultStr {
export interface OrderResultStr {
alipay_trade_app_pay_response: {
/**
* 64 70501111111S001111119
@ -50,9 +46,9 @@ declare module "@uiw/react-native-alipay" {
},
sign: string;
sign_type: 'RSA2' | 'RSA';
}
}
/**
/**
*
* @returns
*
@ -74,7 +70,7 @@ declare module "@uiw/react-native-alipay" {
* }
* ```
*/
export interface OrderResult {
export interface OrderResult {
/**
*
* [](https://opendocs.alipay.com/open/204/105301#%E8%BF%94%E5%9B%9E%E7%BB%93%E6%9E%9C%E7%A4%BA%E4%BE%8B%EF%BC%88iOS%7CAndroid%EF%BC%89)
@ -105,12 +101,12 @@ declare module "@uiw/react-native-alipay" {
* "Error Domain=系统繁忙,请稍后再试 Code=1000 "(null)""
*/
memo: string;
}
/**
}
/**
* [](https://opendocs.alipay.com/open/218/105327#%E8%BF%94%E5%9B%9E%E7%BB%93%E6%9E%9C%E8%AF%B4%E6%98%8E)
*
*/
export interface AuthResult {
export interface AuthResult {
/**
* 144
* - `result_code` result_code状态代码resultStatus为9000result_code为200
@ -130,34 +126,33 @@ declare module "@uiw/react-native-alipay" {
*
*/
memo: string;
}
/**
}
/**
*
* @param payInfo
* @returns result https://docs.open.alipay.com/204/105301
*/
export function alipay(payInfo: string): Promise<OrderResult>;
/**
export function alipay(payInfo: string): Promise<OrderResult>;
/**
*
* @param authInfoStr
* @returns result https://opendocs.alipay.com/open/218/105327
*/
export function authInfo(authInfoStr: string): Promise<AuthResult>;
/**
export function authInfo(authInfoStr: string): Promise<AuthResult>;
/**
* SDK
* @return SDK
*/
export function getVersion(): Promise<string>;
/**
export function getVersion(): Promise<string>;
/**
* Scheme iOS
* @param scheme scheme = `ap` + `APPID`
* @platform ios
*/
export function setAlipayScheme(scheme: string): void;
/**
export function setAlipayScheme(scheme: string): void;
/**
* Android
* @param isSandBox
* @platform android
*/
export function setAlipaySandbox(isSandbox: boolean): void;
}
export function setAlipaySandbox(isSandbox: boolean): void;