-
Notifications
You must be signed in to change notification settings - Fork 8
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
What is the supposed workflow when using parameter types for API calls? #55
Comments
Well, A fix proposed in #41 is to make interface ApiParams extends UnknownApiParams { ... }
type UnknownApiParams = Record<string, string | number | boolean | File | string[] | number[] | undefined>; If that's ok, I can apply that fix to the base branch. |
Sounds good. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Let's say I want to make sure the parameters I use for my calls to a certain API comply with the contract. What is my workflow for that?
E.g. when I do
options
gets highlighted by TypeScript with the errorIndeed, there is no index signature in the
ApiComparePagesParams
interface.UnknownApiParams
istypes-mediawiki/mw/Api.d.ts
Line 19 in d050e22
The text was updated successfully, but these errors were encountered: