-
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 Page/index.js to TypeScript #2169
Conversation
8599ed2
to
47d24fe
Compare
47d24fe
to
111716f
Compare
111716f
to
2c5070c
Compare
pageConfig: PageConfig; | ||
siteConfig: SiteConfig; | ||
|
||
// We assert that these properties exist because resetState is called in the constructor to initialise them |
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.
Interesting, I didn't know this was possible in TS 🤔
packages/core/src/Page/index.ts
Outdated
* object of {text: NAV_TEXT, level: NAV_LEVEL}. | ||
* Used for page nav generation. | ||
* @type {Object<string, Object>} | ||
* object of used for page nav generation. |
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.
Nit: seems grammatically weird
2c5070c
to
3996208
Compare
3996208
to
a0edaf2
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
What is the purpose of this pull request?
Part of #1913
Overview of changes:
Migrate Page/index.js to TypeScript
Proposed commit message: (wrap lines at 72 characters)
(rebase commit)
Checklist: ☑️