From 9dfe215eebb1152a57b61b87ceed97d9e991e1ee Mon Sep 17 00:00:00 2001 From: shiluo34 Date: Wed, 24 Aug 2022 16:26:34 +0800 Subject: [PATCH 1/3] + feat(types): add type in ReservedProps --- types/jsx.d.ts | 3 ++- types/test/v3/tsx-test.tsx | 6 +++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/types/jsx.d.ts b/types/jsx.d.ts index 85c9c1df23d..4325c0dc14e 100644 --- a/types/jsx.d.ts +++ b/types/jsx.d.ts @@ -24,6 +24,7 @@ // Sebastian Silbermann import * as CSS from 'csstype' +import { Ref } from './v3-generated' export interface CSSProperties extends CSS.Properties, @@ -1302,7 +1303,7 @@ type EventHandlers = { type ReservedProps = { key?: string | number | symbol - ref?: VNodeData['ref'] + ref?: VNodeData['ref'] | Ref /** * @deprecated Old named slot syntax has been deprecated, use the new syntax * instead: `