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

fix: change Api.AssertUser interface -> type alias #46

Merged
merged 2 commits into from
May 25, 2024

Conversation

sportshead
Copy link
Contributor

The interface causes issues with satisfying the index signature of UnknownApiParams (which is a Record<string, ...>). A type alias instead of an interface allows the index signature to work properly. See microsoft/TypeScript#15300

Fixes #45

The interface causes issues with satisfying the index signature of
`UnknownApiParams` (which is a `Record<string, ...>`). A type alias
instead of an interface allows the index signature to work properly.
See microsoft/TypeScript#15300

Bug: wikimedia-gadgets#45
AnYiEE added a commit to AnYiEE/types-mediawiki-renovate that referenced this pull request May 19, 2024
@siddharthvp siddharthvp merged commit 53f80c2 into wikimedia-gadgets:main May 25, 2024
1 check passed
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.

mw.Api#assertCurrentUser() calls cause a linter error
2 participants