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 src/Dialog to TypeScript #5639

Merged
merged 1 commit into from Apr 16, 2020
Merged

Migrate src/Dialog to TypeScript #5639

merged 1 commit into from Apr 16, 2020

Conversation

jackfranklin
Copy link
Collaborator

No description provided.

src/Dialog.ts Outdated Show resolved Hide resolved
@jackfranklin jackfranklin force-pushed the typescript-dialog branch 2 times, most recently from d1317d3 to 5f87eed Compare April 15, 2020 08:22
@mathiasbynens mathiasbynens added this to the TypeScript migration milestone Apr 16, 2020
@jackfranklin jackfranklin force-pushed the typescript-dialog branch 2 times, most recently from a96721f to b3e279f Compare April 16, 2020 10:37
@jackfranklin jackfranklin changed the title [WIP] Move Dialog to TypeScript Migrate src/Dialog to TypeScript Apr 16, 2020
utils/doclint/cli.js Outdated Show resolved Hide resolved
Copy link
Member

@mathiasbynens mathiasbynens left a comment

Choose a reason for hiding this comment

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

LGTM % nits

This PR changes `src/Dialog.js` to `src/Dialog.ts` and rewrites
accordingly. Most of the changes are straight forward; the only
interesting one from a TS point of view is the `DialogType` enum. I
expose it again as `Dialog.Type` to avoid a breaking change.

This PR also exposed some bugs with our ESLint TypeScript settings and
applying the overrides, so I fixed those too.

I also updated our DocLint tool to work on TS source files over JS lib
files if they exist. This is the minimal change to keep the existing doc
system working as we're working on moving away from this system longer
term.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants