Skip to content
This repository was archived by the owner on Aug 1, 2021. It is now read-only.

Commit 07dd39c

Browse files
committed
[Feature] add Candidate interface
1 parent d02e312 commit 07dd39c

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

src/interfaces/ICandidate.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
export interface ICandidate {
2+
_id: number;
3+
name: string;
4+
voteCount: number;
5+
}
6+
7+
export interface ICandidateInputDTO {
8+
name: string;
9+
}

src/interfaces/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export * from './ICandidate';
2+
export * from './IUser';

0 commit comments

Comments
 (0)