Migrate actions,reducers and action types to TS #15
This commit is contained in:
5
app/domain/votes/index.ts
Normal file
5
app/domain/votes/index.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import {Vote} from './vote';
|
||||
|
||||
export {
|
||||
Vote
|
||||
}
|
||||
53
app/domain/votes/vote.ts
Normal file
53
app/domain/votes/vote.ts
Normal 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;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user