mirror of
https://github.com/astuto/astuto.git
synced 2025-12-15 19:27:52 +01:00
Improve type checks
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user