-
Notifications
You must be signed in to change notification settings - Fork 14.3k
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
Upgrade API files to typescript #25098
Merged
bbovenzi
merged 10 commits into
apache:main
from
pierrejeambrun:upgrade-api-hooks-to-ts
Aug 29, 2022
Merged
Upgrade API files to typescript #25098
bbovenzi
merged 10 commits into
apache:main
from
pierrejeambrun:upgrade-api-hooks-to-ts
Aug 29, 2022
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pierrejeambrun
requested review from
ryanahamilton,
ashb and
bbovenzi
as code owners
July 15, 2022 16:23
boring-cyborg
bot
added
area:UI
Related to UI/UX. For Frontend Developers.
area:webserver
Webserver related Issues
labels
Jul 15, 2022
mik-laj
reviewed
Jul 16, 2022
bbovenzi
reviewed
Jul 18, 2022
Now that the API type generation is merged do you want to rebase the branch? |
pierrejeambrun
force-pushed
the
upgrade-api-hooks-to-ts
branch
from
July 24, 2022 17:10
d46bce5
to
947dd1d
Compare
@bbovenzi Of course the branch is rebased :) |
potiuk
force-pushed
the
upgrade-api-hooks-to-ts
branch
from
July 25, 2022 14:41
947dd1d
to
60ee210
Compare
Rebased to account for "Werkzeug" fix |
pierrejeambrun
force-pushed
the
upgrade-api-hooks-to-ts
branch
4 times, most recently
from
August 26, 2022 17:51
fbe26ae
to
067c203
Compare
pierrejeambrun
force-pushed
the
upgrade-api-hooks-to-ts
branch
from
August 26, 2022 21:04
3b5386e
to
0d00add
Compare
pierrejeambrun
requested review from
bbovenzi and
mik-laj
and removed request for
ryanahamilton,
ashb,
bbovenzi and
mik-laj
August 26, 2022 21:07
pierrejeambrun
changed the title
Upgrade API file to typescript
Upgrade API fileS to typescript
Aug 26, 2022
pierrejeambrun
changed the title
Upgrade API fileS to typescript
Upgrade API files to typescript
Aug 28, 2022
bbovenzi
approved these changes
Aug 29, 2022
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looking great! excited to have better typescript coverage.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
area:UI
Related to UI/UX. For Frontend Developers.
area:webserver
Webserver related Issues
type:improvement
Changelog: Improvements
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Move files under
js/api
to typescript.related: #24350
@bbovenzi As discussed, here is a draft with only a few files (Migrations) updated.I tried to use as many types as possible from the API generated ones. Some of the hooks use endpoints from
views.py
that are not exposed in the public API, we still need to make our own type for them.As Brent suggested, there is also a very minimal
URLSearchParamsWrapper
to avoid manually casting to String everything.