Skip to content

Commit

Permalink
chore: typo in readme [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
lgou2w committed Mar 21, 2023
1 parent 9436408 commit dfb369e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,11 @@ interface PicaComicAPIOptions {
// 例子:
// async reauthorizationTokenCallback (self) {
// console.log('令牌无效, 重新认证...')
// return await self.signIn({
// const response = await self.signIn({
// email : '你的 PicaComic 哔咔账户邮箱',
// password: '你的 PicaComic 哔咔账户密码'
// })
// return response.data.token
// }
reauthorizationTokenCallback?: (self: PicaComicAPI) => string | undefined | Promise<string | undefined>
}
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,11 @@ interface PicaComicAPIOptions {
// Example:
// async reauthorizationTokenCallback (self) {
// console.log('Token invalid, re-authenticate...')
// return await self.signIn({
// const response = await self.signIn({
// email : 'your picacomic account email',
// password: 'your picacomic account password'
// })
// return response.data.token
// }
reauthorizationTokenCallback?: (self: PicaComicAPI) => string | undefined | Promise<string | undefined>
}
Expand Down

0 comments on commit dfb369e

Please sign in to comment.