mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-06-13 01:33:08 -05:00
fix confused comment (#49094)
This commit is contained in:
@@ -12,8 +12,6 @@ const myHoc = <ComposedComponentProps extends any>(
|
||||
|
||||
const props: ComposedComponentProps = null as any;
|
||||
|
||||
// Expected no error, got none - good
|
||||
<WrapperComponent {...props} myProp={'1000000'} />;
|
||||
// Expected error, but got none - bad!
|
||||
<WrapperComponent {...props} myProp={1000000} />;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user