typescript: Complete most TypeScript todos.

This commit is contained in:
am2505
2020-03-07 22:11:42 +05:30
committed by Anders Kaseorg
parent e536a03fab
commit bb6d90671f
18 changed files with 109 additions and 50 deletions

View File

@@ -1,4 +1,4 @@
import Tab from './tab';
import Tab, { TabProps } from './tab';
export default class FunctionalTab extends Tab {
$closeButton: Element;
@@ -13,8 +13,7 @@ export default class FunctionalTab extends Tab {
</div>`;
}
// TODO: Typescript - This type for props should be TabProps
constructor(props: any) {
constructor(props: TabProps) {
super(props);
this.init();
}