//@jsx: preserve //@module: amd //@filename: react.d.ts declare module JSX { interface Element { } interface IntrinsicElements { div: any; } interface ElementAttributesProperty { prop: any } } //@filename: file.tsx interface IProps { primaryText: string, [propName: string]: string | number } function VerticalNavMenuItem(prop: IProps) { return
props.primaryText
} function VerticalNav() { return (
// error // ok // error
) }