Enable noImplicitAny

This commit is contained in:
Keith Dahlby
2017-03-07 08:51:14 -06:00
parent b83cfcea07
commit b079a60078
3 changed files with 8 additions and 8 deletions
+3 -3
View File
@@ -26,8 +26,8 @@ var customFilterFunction = function(items: ResultType[], query: string): ResultT
class CustomFilterComponent extends React.Component<CustomFilterComponentProps, any> {
query: string = '';
searchChange(event) {
this.query = event.target.value;
searchChange(event: React.FormEvent<HTMLInputElement>) {
this.query = event.currentTarget.value;
this.props.changeFilter(this.query);
}
@@ -88,4 +88,4 @@ class CustomFilterComponentGrid extends React.Component<any, any> {
}
}
export default CustomFilterComponentGrid;
export default CustomFilterComponentGrid;
+4 -4
View File
@@ -12,12 +12,12 @@ interface MoreCustomHeaderComponentProps extends CustomHeaderComponentProps {
}
class HeaderComponent extends React.Component<MoreCustomHeaderComponentProps, any> {
textOnClick(e) {
textOnClick(e: React.FormEvent<HTMLInputElement>) {
e.stopPropagation();
}
filterText(e) {
this.props.filterByColumn(e.target.value, this.props.columnName)
filterText(e: React.FormEvent<HTMLInputElement>) {
this.props.filterByColumn(e.currentTarget.value, this.props.columnName)
}
render() {
@@ -92,4 +92,4 @@ class CustomHeaderComponentGrid extends React.Component<any, any> {
}
}
export default CustomHeaderComponentGrid;
export default CustomHeaderComponentGrid;
+1 -1
View File
@@ -6,7 +6,7 @@
"dom"
],
"jsx": "preserve",
"noImplicitAny": false,
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": false,
"baseUrl": "../",