Explorar o código

fix(types): allow symbol in JSX ReservedProps.key (#4306)

Shinigami %!s(int64=4) %!d(string=hai) anos
pai
achega
6e5801f8a8
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      packages/runtime-dom/types/jsx.d.ts

+ 1 - 1
packages/runtime-dom/types/jsx.d.ts

@@ -1305,7 +1305,7 @@ type EventHandlers<E> = {
 import * as RuntimeCore from '@vue/runtime-core'
 
 type ReservedProps = {
-  key?: string | number
+  key?: string | number | symbol
   ref?:
     | string
     | RuntimeCore.Ref