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
/** Some description * * @param {PropsType} props The props of the component. * @param {string} props.one One property of the props. * @param {number} props.two Another property of the props. * @return {JSX.Element} A ReactElement. */constSomeReactElement=({ one, two })=>(<div>
// `one` and `two` should be `string` and `number`, but they are `any`.
</div>);
Expected behavior:
Destructive parameters should retain type declaration in JSDoc tags
Actual behavior:
Destructive parameters lose the type definition, and are being declared as any
The text was updated successfully, but these errors were encountered:
Automatically closing this issue for housekeeping purposes. The issue labels indicate that it is unactionable at the moment or has already been addressed.
TypeScript Version: 2.2.2 (VSCode integrated)
Code
Expected behavior:
Destructive parameters should retain type declaration in JSDoc tags
Actual behavior:
Destructive parameters lose the type definition, and are being declared as
any
The text was updated successfully, but these errors were encountered: