After a lot of fiddling, we have settled on the following set up.
import React from 'react';
export interface MyComponentProps {
prop1: boolean;
prop2?: string;
prop3?: string;
}
declare const MyComponent: React.SFC<MyComponentProps>
export default MyComponent
The inspiration for this was taken from:
https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/material-ui/index.d.ts
It works well with TypeDoc and also VS Code’s intellisense.
I believe export default was the key to cracking intellisense here.