chore: fix tsc build errors in latest @types/react
#7482
+32
−16
Merged
@types/react
#7482