diff --git a/src/pages/Events/Events.tsx b/src/pages/Events/Events.tsx index f2e72e90c6..4b7288294c 100644 --- a/src/pages/Events/Events.tsx +++ b/src/pages/Events/Events.tsx @@ -37,4 +37,4 @@ class EventsPageClass extends React.Component { ) } } -export const EventsPage = withRouter(EventsPageClass as any) +export const EventsPage: any = withRouter(EventsPageClass as any) diff --git a/src/pages/Home/Home.tsx b/src/pages/Home/Home.tsx index f43dbf8c2a..9d6af17067 100644 --- a/src/pages/Home/Home.tsx +++ b/src/pages/Home/Home.tsx @@ -28,4 +28,4 @@ class HomePageClass extends React.Component { } } -export const HomePage = withRouter(HomePageClass as any) +export const HomePage: any = withRouter(HomePageClass as any) diff --git a/src/pages/Howto/Howto.tsx b/src/pages/Howto/Howto.tsx index 8356492dee..1d47762e95 100644 --- a/src/pages/Howto/Howto.tsx +++ b/src/pages/Howto/Howto.tsx @@ -4,7 +4,6 @@ import { Howto } from './Content/Howto/Howto' import CreateHowto from './Content/CreateHowto/CreateHowto' import { EditHowto } from './Content/EditHowto/EditHowto' import { HowtoList } from './Content/HowtoList/HowtoList' -import { AuthRoute } from '../common/AuthRoute' class HowtoPageClass extends React.Component { constructor(props: any) { @@ -39,4 +38,4 @@ class HowtoPageClass extends React.Component { ) } } -export const HowtoPage = withRouter(HowtoPageClass as any) +export const HowtoPage: any = withRouter(HowtoPageClass as any) diff --git a/src/pages/Maps/Maps.tsx b/src/pages/Maps/Maps.tsx index 21d45f4435..2842ada43e 100644 --- a/src/pages/Maps/Maps.tsx +++ b/src/pages/Maps/Maps.tsx @@ -9,7 +9,6 @@ import { Box } from 'rebass' import './styles.css' import { ILatLng } from 'src/models/maps.models' -import { IUser } from 'src/models/user.models' import { GetLocation } from 'src/utils/geolocation' import { Map } from 'react-leaflet' import { MAP_GROUPINGS } from 'src/stores/Maps/maps.groupings' @@ -141,4 +140,4 @@ class MapsPageClass extends React.Component { } } -export const MapsPage = withRouter(MapsPageClass as any) +export const MapsPage: any = withRouter(MapsPageClass as any) diff --git a/src/pages/admin/Admin.tsx b/src/pages/admin/Admin.tsx index b0f46fb8e0..b02c9f4f8e 100644 --- a/src/pages/admin/Admin.tsx +++ b/src/pages/admin/Admin.tsx @@ -66,4 +66,4 @@ class AdminPageClass extends React.Component { ) } } -export const AdminPage = withRouter(AdminPageClass as any) +export const AdminPage: any = withRouter(AdminPageClass as any) diff --git a/tsconfig.json b/tsconfig.json index aac473a5ce..b800c40b48 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -18,7 +18,7 @@ "strictPropertyInitialization": false, "experimentalDecorators": true, "typeRoots": ["./node_modules/@types", "./types"], - "declaration": false, + "declaration": true, "noEmit": true }, "include": ["src/**/*", "types"],