fix(types): fix typescript error when spreading $props(#5968)

This commit is contained in:
Carlos Rodrigues
2022-05-20 17:59:29 +01:00
committed by GitHub
parent 8071ef47b5
commit 0c7fd13ea6
5 changed files with 27 additions and 7 deletions

View File

@@ -40,7 +40,6 @@ export interface CSSProperties
* For examples and more information, visit:
* https://github.com/frenic/csstype#what-should-i-do-when-i-get-type-errors
*/
[v: `--${string}`]: string | number | undefined
}
@@ -1311,10 +1310,7 @@ import * as RuntimeCore from '@vue/runtime-core'
type ReservedProps = {
key?: string | number | symbol
ref?:
| string
| RuntimeCore.Ref
| ((ref: Element | RuntimeCore.ComponentPublicInstance | null) => void)
ref?: RuntimeCore.VNodeRef
ref_for?: boolean
ref_key?: string
}