From 94ccca207c9c5fc0fc8985e0c103d8a1c9cff412 Mon Sep 17 00:00:00 2001 From: Evan You Date: Wed, 6 Jul 2022 11:17:33 +0800 Subject: [PATCH] fix(types): allow slot attribute close #12617 --- types/jsx.d.ts | 6 ++++++ types/test/v3/tsx-test.tsx | 2 ++ 2 files changed, 8 insertions(+) diff --git a/types/jsx.d.ts b/types/jsx.d.ts index 151a660be9f..85c9c1df23d 100644 --- a/types/jsx.d.ts +++ b/types/jsx.d.ts @@ -1303,6 +1303,12 @@ type EventHandlers = { type ReservedProps = { key?: string | number | symbol ref?: VNodeData['ref'] + /** + * @deprecated Old named slot syntax has been deprecated, use the new syntax + * instead: `