Skip to content

Conversation

runofthemillgeek
Copy link
Contributor

@runofthemillgeek runofthemillgeek commented Oct 12, 2019

At the moment, since acorn.parse compatible options are only being accepted. Probably need a custom interface instead.

CC: @znck

Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
export const parseJS: typeof parse = (code: string, options: acorn.Options) => {
export const parseJS: typeof parse = (code, options) => {

We can remove explicit types as types can be inferred from typeof parse.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@znck Totally right! Made the changes.

@runofthemillgeek runofthemillgeek force-pushed the chore/compiler-core-improve-typings-parsejs branch from ecf4d37 to 84779cd Compare October 12, 2019 12:46
@yyx990803 yyx990803 merged commit 9668194 into vuejs:master Oct 12, 2019
@vue-bot
Copy link
Contributor

vue-bot commented Oct 12, 2019

Hey @sangeeth96, thank you for your time and effort spent on this PR, contributions like yours help make Vue better for everyone. Cheers! 💚

sxzz added a commit that referenced this pull request Aug 12, 2024
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
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.

4 participants