Skip to content

Commit 04640d0

Browse files
author
Kanchalai Tanglertsampan
committed
Add tests
1 parent aef58a5 commit 04640d0

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// @jsx: react
2+
declare module JSX {
3+
interface Element {
4+
div: string;
5+
}
6+
}
7+
declare namespace React {
8+
class Component<P, S> {
9+
constructor(props?: P, context?: any);
10+
props: P;
11+
}
12+
}
13+
14+
export class ShortDetails extends React.Component<{ id: number }, {}> {
15+
public render(): JSX.Element {
16+
if (this.props.id < 1) {
17+
return (<div></div>);
18+
}
19+
}
20+
}

0 commit comments

Comments
 (0)