Skip to content

types(runtime-dom): export type StyleValue #3718

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
Aug 16, 2021

Conversation

Amour1688
Copy link
Member

No description provided.

@HcySunYang
Copy link
Member

Is this for JSX type support?

@Amour1688
Copy link
Member Author

import { CSSProperties } from 'vue'

type StyleValue = string | CSSProperties | Array<StyleValue>;

export interface AProps {
  style?: StyleValue
}

I want type definition of style to have same type definition with HTMLAttributes['style']

@HcySunYang
Copy link
Member

I see, maybe you can use HTMLAttributes['style'] directly:

import { HTMLAttributes } from 'vue'

export interface AProps {
  style?: HTMLAttributes['style']
}

@yyx990803 yyx990803 changed the title feat(runtime-dom): should export type StyleValue types(runtime-dom): export type StyleValue Aug 16, 2021
@yyx990803 yyx990803 merged commit 516d464 into vuejs:master Aug 16, 2021
@Amour1688 Amour1688 deleted the feat-style-value branch September 14, 2021 05:34
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.

3 participants