-
-
Notifications
You must be signed in to change notification settings - Fork 835
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
Convert some common classes/utils to TS #2929
Conversation
f6dd14f
to
d29d4d6
Compare
90f8044
to
64d0089
Compare
Before review, this should be rebased, and tested against the current TypeScript environment to ensure that it doesn't introduce any new bugs. |
@askvortsov1 I rebased this PR a week ago, that's why I re-requested the reviews. |
Right, but the Typecheck and type coverage GH actions aren't showing up, so those must have been merged after you rebased. |
Co-authored-by: David Wheatley <[email protected]>
b0d33dc
to
93514d2
Compare
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.
Looks good to me!
Not sure if these suggestions might be better as Babel compiles them to a smaller bundle size. Up to you.
@davwheat I'd rather keep it as is, I feel like |
Changes proposed in this pull request:
Application
,Session
,utils/extractText
states/AlertManagerState
andutils/RequestError
Reviewers should focus on:
Properly typing
extract
is close to impossible because we override it with a different type. We use it and just passxhr.responseText
, but Mithril'sextract
option takesxhr
andoptions
.PhpStorm screenshots
Do we want the Application types to be exported at the top or a different file?
Screenshot
Confirmed