Improve type checks

This commit is contained in:
riggraz
2019-09-26 16:03:41 +02:00
parent 322c8e51cf
commit 678d2eaacf
16 changed files with 67 additions and 26 deletions

View File

@@ -6,6 +6,9 @@ import createStoreHelper from '../../helpers/createStore';
import IBoard from '../../interfaces/IBoard';
import { Store } from 'redux';
import { State } from '../../reducers/rootReducer';
interface Props {
board: IBoard;
isLoggedIn: boolean;
@@ -13,7 +16,7 @@ interface Props {
}
class BoardRoot extends React.Component<Props> {
store: any;
store: Store<State, any>;
constructor(props: Props) {
super(props);

View File

@@ -8,6 +8,9 @@ import Post from '../../containers/Post';
import IBoard from '../../interfaces/IBoard';
import IPostStatus from '../../interfaces/IPostStatus';
import { Store } from 'redux';
import { State } from '../../reducers/rootReducer';
interface Props {
postId: number;
boards: Array<IBoard>;
@@ -18,7 +21,7 @@ interface Props {
}
class PostRoot extends React.Component<Props> {
store: any;
store: Store<State, any>;
constructor(props: Props) {
super(props);