Skip to content

Commit

Permalink
use type any for exported pages
Browse files Browse the repository at this point in the history
  • Loading branch information
BenGamma committed Aug 22, 2020
1 parent 2bbc662 commit 195a205
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/pages/Events/Events.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ class EventsPageClass extends React.Component<IProps, any> {
)
}
}
export const EventsPage = withRouter(EventsPageClass as any)
export const EventsPage: any = withRouter(EventsPageClass as any)
2 changes: 1 addition & 1 deletion src/pages/Home/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ class HomePageClass extends React.Component<IState, any> {
}
}

export const HomePage = withRouter(HomePageClass as any)
export const HomePage: any = withRouter(HomePageClass as any)
3 changes: 1 addition & 2 deletions src/pages/Howto/Howto.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<any, any> {
constructor(props: any) {
Expand Down Expand Up @@ -39,4 +38,4 @@ class HowtoPageClass extends React.Component<any, any> {
)
}
}
export const HowtoPage = withRouter(HowtoPageClass as any)
export const HowtoPage: any = withRouter(HowtoPageClass as any)
3 changes: 1 addition & 2 deletions src/pages/Maps/Maps.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -141,4 +140,4 @@ class MapsPageClass extends React.Component<IProps, IState> {
}
}

export const MapsPage = withRouter(MapsPageClass as any)
export const MapsPage: any = withRouter(MapsPageClass as any)
2 changes: 1 addition & 1 deletion src/pages/admin/Admin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,4 @@ class AdminPageClass extends React.Component<IProps, any> {
)
}
}
export const AdminPage = withRouter(AdminPageClass as any)
export const AdminPage: any = withRouter(AdminPageClass as any)
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"strictPropertyInitialization": false,
"experimentalDecorators": true,
"typeRoots": ["./node_modules/@types", "./types"],
"declaration": false,
"declaration": true,
"noEmit": true
},
"include": ["src/**/*", "types"],
Expand Down

0 comments on commit 195a205

Please sign in to comment.