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

convert @babel/helper-fixtures to typescript #12922

Merged

Conversation

zxbodya
Copy link
Contributor

@zxbodya zxbodya commented Feb 27, 2021

Q                       A
License MIT

@babel/helper-fixtures part of #11578

@babel-bot
Copy link
Collaborator

babel-bot commented Feb 27, 2021

Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/43100/

@codesandbox-ci
Copy link

codesandbox-ci bot commented Feb 27, 2021

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 4ae0c3a:

Sandbox Source
babel-repl-custom-plugin Configuration
babel-plugin-multi-config Configuration

@nicolo-ribaudo nicolo-ribaudo added the Flow -> TS Tracking repository migration from Flow to TS label Feb 27, 2021
@@ -119,7 +122,7 @@ function pushTask(taskName, taskDir, suite, suiteName) {
const taskOptsLoc = tryResolve(taskDir + "/options");
if (taskOptsLoc) Object.assign(taskOpts, require(taskOptsLoc));

const test = {
const test: any = {
Copy link
Member

Choose a reason for hiding this comment

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

Doesn't TS infer the correct type here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it does, but there are additional properties assigned later(sourceMappings, sourceMap, inputSourceMap)

other options would be - restructure the code to construct test with all properties in it, or to have type for it separately

Copy link
Contributor Author

@zxbodya zxbodya Feb 27, 2021

Choose a reason for hiding this comment

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

made a bit better fix instead of any

Copy link
Member

@nicolo-ribaudo nicolo-ribaudo left a comment

Choose a reason for hiding this comment

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

Thanks!

@nicolo-ribaudo
Copy link
Member

I'm merging this as a single commit (not rename + convert) because git is correctly tracking renamed files.

@nicolo-ribaudo nicolo-ribaudo merged commit a653b9c into babel:main Mar 1, 2021
@nicolo-ribaudo nicolo-ribaudo deleted the ts-migration/babel-helper-fixtures branch March 1, 2021 15:44
@github-actions github-actions bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Jun 1, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Flow -> TS Tracking repository migration from Flow to TS outdated A closed issue/PR that is archived due to age. Recommended to make a new issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants