Migrate actions,reducers and action types to TS #15

This commit is contained in:
Qolzam
2017-10-10 08:01:25 +07:00
parent 3b3899e7af
commit f9d213f741
113 changed files with 2692 additions and 1275 deletions

View File

@@ -0,0 +1,5 @@
import {Vote} from './vote';
export {
Vote
}

53
app/domain/votes/vote.ts Normal file
View File

@@ -0,0 +1,53 @@
import { BaseDomain } from "domain/common";
export class Vote extends BaseDomain {
/**
* Vote identifier
*
* @type {string}
* @memberof Vote
*/
public id?: string | null;
/**
* Post identifire which vote on
*
* @type {string}
* @memberof Vote
*/
public postId: string;
/**
* Vote date
*
* @type {number}
* @memberof Vote
*/
public creationDate: number;
/**
* Voter full name
*
* @type {string}
* @memberof Vote
*/
public userDisplayName: string;
/**
* Avatar of voter
*
* @type {string}
* @memberof Vote
*/
public userAvatar: string;
/**
* Voter identifier
*
* @type {string}
* @memberof Vote
*/
public userId: string;
}