-
- Notifications
You must be signed in to change notification settings - Fork 33.8k
Closed
Description
Version
2.7.2
Reproduction link
Steps to reproduce
- clone reproduction repo
- yarn
- see code in B.tsx, at line 6, it will show an error.
TS2322: Type '{ slot: string; class: string; }' is not assignable to type 'ElementAttrs<HTMLAttributes>'. Property 'slot' does not exist on type 'ElementAttrs<HTMLAttributes>'.
What is expected?
Don't show error
What is actually happening?
Typescript types error in tsx file.
If i add a slot?:string
in this declared interface (
Line 236 in e244687
export interface HTMLAttributes extends AriaAttributes, EventHandlers<Events> { |
Metadata
Metadata
Assignees
Labels
No labels