Migrate actions,reducers and action types to TS #15
This commit is contained in:
26
app/reducers/votes/VoteState.ts
Normal file
26
app/reducers/votes/VoteState.ts
Normal file
@@ -0,0 +1,26 @@
|
||||
import { Vote } from "domain/votes";
|
||||
|
||||
/**
|
||||
* Vote state
|
||||
*
|
||||
* @export
|
||||
* @class VoteState
|
||||
*/
|
||||
export class VoteState {
|
||||
|
||||
/**
|
||||
* The list of posts vote
|
||||
*
|
||||
* @type {({[postId: string]: {[voteId: string]: Vote}} | null)}
|
||||
* @memberof VoteState
|
||||
*/
|
||||
postVotes: {[postId: string]: {[voteId: string]: Vote}} | null = null;
|
||||
|
||||
/**
|
||||
* If posts vote are loaded {true} or not {false}
|
||||
*
|
||||
* @type {Boolean}
|
||||
* @memberof VoteState
|
||||
*/
|
||||
loaded: Boolean = false;
|
||||
}
|
||||
Reference in New Issue
Block a user