20 lines
No EOL
430 B
TypeScript
20 lines
No EOL
430 B
TypeScript
// @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>);
|
|
}
|
|
}
|
|
} |