Skip to content

Migrate source files to TypeScript#27

Merged
whymarrh merged 4 commits intomasterfrom
typescript
Oct 30, 2020
Merged

Migrate source files to TypeScript#27
whymarrh merged 4 commits intomasterfrom
typescript

Conversation

@whymarrh
Copy link
Copy Markdown
Contributor

Closes #20

This change migrates the source files to TypeScript, leaving just the tests written in JS. This allows us to auto-generate type definitions for the project and to ensure a basic set of type safety.

The test files can be updated in a separate PR, optionally.

This change migrates the source files to TypeScript, leaving just the tests
written in JS. This allows us to auto-generate type definitions for the project
and to ensure a basic set of type safety.

The test files can be updated in a separate PR, optionally.
@whymarrh whymarrh marked this pull request as ready for review October 26, 2020 14:36
@whymarrh whymarrh requested a review from a team as a code owner October 26, 2020 14:36
Copy link
Copy Markdown
Member

@rekmarks rekmarks left a comment

Choose a reason for hiding this comment

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

Neat!

Just some questions and nits.

whymarrh and others added 2 commits October 27, 2020 13:39
Co-authored-by: Erik Marks <25517051+rekmarks@users.noreply.github.com>
"lint": "eslint .",
"build": "tsc --project .",
"test": "yarn build && tape test/**/*.js",
"lint": "yarn build && eslint test/*.js",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It looks like the .ts files aren't being linted? 🤔

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

They aren't, no. That's a separate PR.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I wanted to make minimal changes to the JS source to facilitate review. Linting the TS sources would add a lot of changes/noise to the diff.

Copy link
Copy Markdown
Member

@rekmarks rekmarks left a comment

Choose a reason for hiding this comment

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

LGTM!

@whymarrh whymarrh merged commit 9bea6e5 into master Oct 30, 2020
@whymarrh whymarrh deleted the typescript branch October 30, 2020 16:10
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.

Migrate to TypeScript

3 participants