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

feat(types): add defined emits to props #3926

Merged
merged 1 commit into from
Jul 19, 2021

Conversation

Amour1688
Copy link
Member

image

@illumi520
Copy link

nice

test-dts/defineComponent.test-d.tsx Outdated Show resolved Hide resolved
test-dts/defineComponent.test-d.tsx Outdated Show resolved Hide resolved
test-dts/defineComponent.test-d.tsx Outdated Show resolved Hide resolved
test-dts/defineComponent.test-d.tsx Outdated Show resolved Hide resolved
test-dts/defineComponent.test-d.tsx Outdated Show resolved Hide resolved
test-dts/defineComponent.test-d.tsx Show resolved Hide resolved
test-dts/defineComponent.test-d.tsx Show resolved Hide resolved
@@ -66,7 +66,7 @@
"lint-staged": "^10.2.10",
"minimist": "^1.2.0",
"npm-run-all": "^4.1.5",
"prettier": "~1.14.0",
"prettier": "^2.3.1",
Copy link
Member Author

Choose a reason for hiding this comment

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

image
TS template literal types that cannot be handled.

@tangjinzhou
Copy link
Contributor

What's the status?

@posva posva changed the title feat(runtime-core): merge the attrs defined in emits into props feat(types): add defined emits to props Jun 23, 2021
@Amour1688 Amour1688 changed the base branch from master to 3.2 July 14, 2021 11:43
@yyx990803 yyx990803 force-pushed the 3.2 branch 2 times, most recently from 6ed23f6 to 49dc2dd Compare July 16, 2021 18:31
@yyx990803 yyx990803 changed the base branch from 3.2 to master July 19, 2021 22:02
@yyx990803 yyx990803 merged commit 69344ff into vuejs:master Jul 19, 2021
@Amour1688 Amour1688 deleted the emits-to-props branch July 20, 2021 03:48
@klwfwdk
Copy link
Contributor

klwfwdk commented Aug 11, 2021

Is this change just to fix a bug in the TSX? Props does not actually have an onClick property. This will contaminate the editor's automatic code prompt.

haoqunjiang added a commit to vuejs/create-eslint-config that referenced this pull request Oct 25, 2024
…vue core

After all, `vuejs/core` is more of a TypeScript project than a Vue project.
I feel that we really need `printWidth: 100` for templates.

And `arrowParens` isn't that important. Let's use the default value.
Moreover, as stated in [prettier's documentation](https://prettier.io/docs/en/options#arrow-function-parentheses),
`arrowParens: "always"` is better for adding type annotations, extra
arguments or default values as well as making other changes.
I believe that `arrowParens: "avoid"` is set in `vuejs/core` only
because it started using prettier in its 1.x era and want to avoid
too drastic style changes. vuejs/core#3926 (comment)
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.

8 participants