This repository has been archived on 2025-09-03. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
resolver/app/reducers/votes/VoteState.ts
2017-10-10 16:39:02 +07:00

26 lines
510 B
TypeScript

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
}