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

Initial TypeScript setup #3598

Merged
merged 6 commits into from
Jul 6, 2022
Merged

Initial TypeScript setup #3598

merged 6 commits into from
Jul 6, 2022

Conversation

luin
Copy link
Member

@luin luin commented Jun 20, 2022

To minimize changed files, for typing issues, this PR prefers to suppress them with // @ts-expect-error unless it's an easy fix.

To test:

  1. Make sure npm test passes.
  2. Make sure npm start and http://localhost:9000/standalone/full/ works.

@luin luin force-pushed the zh-ts branch 2 times, most recently from caf578f to 3530351 Compare June 20, 2022 16:15
@@ -283,25 +314,24 @@ class Selection {
return range;
}

rangeToNative(range) {
const indexes = range.collapsed
Copy link
Member Author

Choose a reason for hiding this comment

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

Range#collapsed was removed in a refactor: d47f03c.

@@ -664,14 +664,5 @@ describe('Selection', function() {
this.bounds = selection.getBounds(0, 10);
}).not.toThrow();
});

it('empty container', function() {
Copy link
Member Author

Choose a reason for hiding this comment

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

I added this test but it actually never passes.

@luin luin force-pushed the zh-ts branch 4 times, most recently from 9492390 to 7a3c90b Compare June 22, 2022 00:17
@luin luin force-pushed the zh-ts branch 3 times, most recently from 0f24095 to 056d07d Compare June 22, 2022 00:46
@luin luin force-pushed the zh-ts branch 2 times, most recently from a866729 to d7f485a Compare June 22, 2022 02:08
@luin luin marked this pull request as ready for review June 22, 2022 07:37
@luin luin merged commit 541bd36 into develop Jul 6, 2022
@luin luin deleted the zh-ts branch July 6, 2022 09:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants