mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-06-10 18:04:18 -05:00
Add tests
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
// @jsx: react
|
||||
declare module JSX {
|
||||
interface Element {
|
||||
div: string;
|
||||
}
|
||||
}
|
||||
declare namespace React {
|
||||
class Component<P, S> {
|
||||
constructor(props?: P, context?: any);
|
||||
props: P;
|
||||
}
|
||||
}
|
||||
|
||||
export class ShortDetails extends React.Component<{ id: number }, {}> {
|
||||
public render(): JSX.Element {
|
||||
if (this.props.id < 1) {
|
||||
return (<div></div>);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user