You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importReactfrom"react";constFoo=({ children })=><div>{children}</div>constBar=()=><Foo>Test</Foo>
Expected behavior:
Children prop is recognized, type check passes.
Actual behavior:
Error occurs:
message: 'Type '{}' is not assignable to type 'IntrinsicAttributes & { children: any; }'.
Type '{}' is not assignable to type '{ children: any; }'.
Property 'children' is missing in type '{}'.'
at: '9,3'
source: 'ts'
The text was updated successfully, but these errors were encountered:
TypeScript Version: 2.3.1
Code
Expected behavior:
Children prop is recognized, type check passes.
Actual behavior:
Error occurs:
The text was updated successfully, but these errors were encountered: