mirror of
https://github.com/MisskeyIO/misskey
synced 2024-11-27 22:38:30 +09:00
type
This commit is contained in:
parent
fd5976f378
commit
7670f364e3
@ -167,7 +167,7 @@ export class GithubServerService {
|
||||
return;
|
||||
}
|
||||
|
||||
const { accessToken } = await new Promise<any>((res, rej) =>
|
||||
const { accessToken } = await new Promise<{ accessToken: string }>((res, rej) =>
|
||||
oauth2!.getOAuthAccessToken(code, {
|
||||
redirect_uri,
|
||||
}, (err, accessToken, refresh, result) => {
|
||||
@ -219,7 +219,7 @@ export class GithubServerService {
|
||||
return;
|
||||
}
|
||||
|
||||
const { accessToken } = await new Promise<any>((res, rej) =>
|
||||
const { accessToken } = await new Promise<{ accessToken: string }>((res, rej) =>
|
||||
oauth2!.getOAuthAccessToken(
|
||||
code,
|
||||
{ redirect_uri },
|
||||
|
Loading…
Reference in New Issue
Block a user