Skip to content
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

Merged
merged 2 commits into from
Feb 20, 2023

Conversation

jovyntls
Copy link
Contributor

@jovyntls jovyntls commented Feb 15, 2023

What is the purpose of this pull request?

  • Documentation update
  • Bug fix
  • Feature addition or enhancement
  • Code maintenance
  • DevOps
  • Improve developer experience
  • Others, please explain:

Part of #1913

Overview of changes:
Migrate Page/index.js to TypeScript

Proposed commit message: (wrap lines at 72 characters)
(rebase commit)


Checklist: ☑️

  • Updated the documentation for feature additions and enhancements
  • Added tests for bug fixes or features
  • Linked all related issues
  • No unrelated changes

@jovyntls jovyntls changed the title Migrate Page/index.js to TypeScript [WIP] Migrate Page/index.js to TypeScript Feb 15, 2023
@jovyntls jovyntls force-pushed the ts-migrate-page-indexjs branch 2 times, most recently from 8599ed2 to 47d24fe Compare February 16, 2023 01:34
jovyntls added a commit to jovyntls/markbind that referenced this pull request Feb 16, 2023
@jovyntls jovyntls force-pushed the ts-migrate-page-indexjs branch from 47d24fe to 111716f Compare February 16, 2023 02:55
@jovyntls jovyntls marked this pull request as ready for review February 16, 2023 02:56
@jovyntls jovyntls changed the title [WIP] Migrate Page/index.js to TypeScript Migrate Page/index.js to TypeScript Feb 16, 2023
jovyntls added a commit to jovyntls/markbind that referenced this pull request Feb 16, 2023
@jovyntls jovyntls force-pushed the ts-migrate-page-indexjs branch from 111716f to 2c5070c Compare February 16, 2023 03:17
pageConfig: PageConfig;
siteConfig: SiteConfig;

// We assert that these properties exist because resetState is called in the constructor to initialise them
Copy link
Contributor

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 🤔

* object of {text: NAV_TEXT, level: NAV_LEVEL}.
* Used for page nav generation.
* @type {Object<string, Object>}
* object of used for page nav generation.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: seems grammatically weird

jovyntls added a commit to jovyntls/markbind that referenced this pull request Feb 19, 2023
@jovyntls jovyntls force-pushed the ts-migrate-page-indexjs branch from 2c5070c to 3996208 Compare February 19, 2023 07:22
@jovyntls jovyntls force-pushed the ts-migrate-page-indexjs branch from 3996208 to a0edaf2 Compare February 19, 2023 07:23
@jovyntls jovyntls requested a review from raysonkoh February 19, 2023 07:26
Copy link
Contributor

@raysonkoh raysonkoh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@raysonkoh raysonkoh added this to the v4.1.1 milestone Feb 19, 2023
@raysonkoh raysonkoh added the r.Patch Version resolver: increment by 0.0.1 label Feb 19, 2023
@jovyntls jovyntls merged commit 4175f4d into MarkBind:master Feb 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
r.Patch Version resolver: increment by 0.0.1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants