Skip to content

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