Skip to content
New issue

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

feat: add login options #13

Merged
merged 2 commits into from
Sep 9, 2023
Merged

Conversation

lovelyCARDINAL
Copy link
Member

@lovelyCARDINAL lovelyCARDINAL commented Aug 20, 2023

Copy link
Member

@dragon-fish dragon-fish left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

建议修改,如果不想改就算了

src/index.ts Outdated
@@ -222,7 +222,8 @@ export class MediaWikiApi {
async login(
lgname: string,
lgpassword: string,
params?: MwApiParams
params?: MwApiParams,
options?: { retry?: number; noCache?: boolean }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

要不给 options 改个名,比如 postOptions,我担心会有一些混淆?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

可以了

@dragon-fish dragon-fish merged commit 456feb2 into moegirlwiki:master Sep 9, 2023
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants