Closed
Description
Follow up on microsoft/TypeScript#39707
Overview
We now have TSServer running in web environments, but it is currently limited to single file intellisense. It would be nice if we could also offer some IntelliSense for third party packages that are imported in the current file.
If a user is trying out react for example, we should be able to offer IntelliSense for React
and ReactDOM
:
//@ts-check
import * as React from 'react';
import * as ReactDOM from 'react-dom';
class HelloMessage extends React.Component {
render() {
return (
<div>
Hello {this.props.name}
</div>
);
}
}
ReactDOM.render(
<HelloMessage name="Taylor" />,
document.getElementById('hello-example')
);