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

chore: move a few more files to TS #913

Merged
merged 14 commits into from
Jun 8, 2023
Merged

chore: move a few more files to TS #913

merged 14 commits into from
Jun 8, 2023

Conversation

wegry
Copy link
Contributor

@wegry wegry commented Jun 2, 2023

Moves some more files over to TS from Flow (syntactically), platform-implementation and compose-view being the biggest two. I suggest ignoring whitespace changes. To reduce noise, there should be no runtime changes. If you see any, please flag them.

Most ESLint rules have been disabled where they conflict for newly moved Flow to TS files for the sake of noise. One exception is prefer-const autofixed in a few spots. Moved to #916. A subsequent pass to remove file wide @typescript-eslint/no-unused-variables disabling might flesh out a good chunk of dead code in the form of unused imports.

Other bits:

  • Kefir.later(n) has been rendered as Kefir.later(n, undefined) to match the TS Kefir types.
  • flow check has been removed
  • .js.flow files have been removed. This is roughly 1/3 of the files touched in the PR. Moved to Drop flow.js and vestigial .d.ts files #917
  • most getEventStream methods on views tend to be loosely typed and should be tightened over time.

@wegry wegry requested review from Macil and dmy7r0 June 2, 2023 19:03
@wegry wegry self-assigned this Jun 2, 2023
@wegry wegry marked this pull request as ready for review June 2, 2023 19:55
wegry added a commit that referenced this pull request Jun 6, 2023
gulpfile.babel.ts Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
src/common/version.ts Outdated Show resolved Hide resolved
src/inboxsdk-js/inboxsdk-NONREMOTE-INTEGRATED-PAGEWORLD.ts Outdated Show resolved Hide resolved
gulpfile.babel.ts Outdated Show resolved Hide resolved
Copy link
Contributor Author

@wegry wegry left a comment

Choose a reason for hiding this comment

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

There may be a way to make this file show up as a minimal rename with some whitespace changes applied.

src/injected-js/setup-event-reemitter.ts Outdated Show resolved Hide resolved
src/injected-js/setup-event-reemitter.ts Outdated Show resolved Hide resolved
src/injected-js/setup-event-reemitter.ts Outdated Show resolved Hide resolved
src/injected-js/setup-event-reemitter.ts Outdated Show resolved Hide resolved
src/injected-js/setup-event-reemitter.ts Outdated Show resolved Hide resolved
src/injected-js/setup-event-reemitter.ts Outdated Show resolved Hide resolved
src/injected-js/setup-event-reemitter.ts Outdated Show resolved Hide resolved
src/injected-js/setup-event-reemitter.ts Outdated Show resolved Hide resolved
src/injected-js/setup-event-reemitter.ts Outdated Show resolved Hide resolved
src/injected-js/setup-event-reemitter.ts Outdated Show resolved Hide resolved
Copy link
Contributor

@dmy7r0 dmy7r0 left a comment

Choose a reason for hiding this comment

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

Went over the changes offline. Looks good

@wegry wegry merged commit 2b4e712 into main Jun 8, 2023
7 checks passed
@wegry wegry deleted the chore/ts branch June 8, 2023 11:22
wegry added a commit that referenced this pull request Jun 8, 2023
Remove file missed in #913
wegry added a commit that referenced this pull request Jun 12, 2023
types: relax ButtonDescriptor type made too strict in #913
wegry added a commit that referenced this pull request Jun 23, 2023
chore: drop unused variables left over from #913
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.

None yet

3 participants