Skip to content

feat(api/typescript): Document use of CSSProperties type. #1470

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

Merged
merged 1 commit into from
Jan 30, 2022

Conversation

LinusBorg
Copy link
Member

Description of Problem

When using typescript Volar/vue-tsc would complain about any custom
CSS property used in a style attribute:

<div :style="{ '--color': red }">

Proposed Solution

Document how to augment the CSSProperties interface to allow specific properties or just any custom property.

Additional Information

@netlify
Copy link

netlify bot commented Jan 29, 2022

✔️ Deploy Preview for vue-docs-preview ready!

🔨 Explore the source changes: d436997

🔍 Inspect the deploy log: https://app.netlify.com/sites/vue-docs-preview/deploys/61f531bbde758600072aceef

😎 Browse the preview: https://deploy-preview-1470--vue-docs-preview.netlify.app

@NataliaTepluhina NataliaTepluhina merged commit db3ba66 into main Jan 30, 2022
@NataliaTepluhina NataliaTepluhina deleted the api-typescript-css-properties branch January 30, 2022 08:48
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.

2 participants