-
Notifications
You must be signed in to change notification settings - Fork 132
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
Migrate Site/index.js to TypeScript #2270
Conversation
478bbd5
to
0f12a21
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.
Thanks for the hardwork! Added some preliminary comments.
9584d6b
to
c598c07
Compare
c598c07
to
1cd8034
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.
LGTM. Thanks @jovyntls!
1cd8034
to
614999e
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.
Thanks @jovyntls for this 💪, have taken a brief look and LGTM.
@tlylt as it will be quite a bit of work to undo the revert while keeping track of new PRs editing the file #2308 (comment), I suggest adding a small follow up comment on top that prohibits any changes to this file until this is fixed (and bumping the priority). The alternative is letting a portion of the typescript migration work go to waste (also an ok approach). |
What is the purpose of this pull request?
Part of #1913
Overview of changes:
Migrates Site/index.js to TS
Anything you'd like to highlight/discuss:
If we want to refactor how the methods at the end of Site/index.js are handled, I'd suggest we do a separate refactor of these methods after migrating this file to TS. Rationale of having these methods defined with
Site.prototype
: see #979Testing instructions:
N/A
Proposed commit message: (wrap lines at 72 characters)
(rebase commit)
Checklist: ☑️