We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
{ accessToken: 'accessToken', alipayUserId: '****', expiresIn: 1296000, reExpiresIn: 2592000, refreshToken: 'refreshToken', userId: 'userId' }
The text was updated successfully, but these errors were encountered:
exec 返回的基础类型是 AlipaySdkCommonResult 你可以这样写:
exec
AlipaySdkCommonResult
interface IOauthToken extends AlipaySdkCommonResult { accessToken: string; alipayUserId: string; expiresIn: number; reExpiresIn: number; refreshToken: string; userId: string; } await alipaySdk.exec('alipay.system.oauth.token', { ... }, { ... }) .then((res: IOauthToken) => { const token = res.accessToken; });
Sorry, something went wrong.
IOauthToken 你定义在哪里的,这个提示是找不到这个定义。
IOauthToken
贴代码出来看看
No branches or pull requests
{ accessToken: 'accessToken',
alipayUserId: '****',
expiresIn: 1296000,
reExpiresIn: 2592000,
refreshToken: 'refreshToken',
userId: 'userId' }
The text was updated successfully, but these errors were encountered: