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
error TS2322: Type '{ mandatoryFn: () => void; optionalBool: boolean; }' is not assignable to type '(IntrinsicAttributes & { optionalBool: true; mandatoryFn: () => void; }) | (IntrinsicAttributes &...'.
Type '{ mandatoryFn: () => void; optionalBool: boolean; }' is not assignable to type 'IntrinsicAttributes &{ optionalBool: false; }'.
Type '{ mandatoryFn: () => void; optionalBool: boolean; }' is not assignable to type '{ optionalBool: false; }'.
Types of property 'optionalBool' are incompatible.
Type 'boolean' is not assignable to type 'false'.
TypeScript Version: 2.7.0-rc (also reproduced in typescript@next i.e. 2.8.0-dev.20180126)
Search Terms: label:Bug tsx
Code
Expected behavior:
No type errors reported.
Actual behavior:
The following error is generated:
Playground Link:
N/A - playground doesn't allow selection of typescript 2.7
Related Issues: N/A
Other variations attempted:
The text was updated successfully, but these errors were encountered: