File tree Expand file tree Collapse file tree 1 file changed +27
-15
lines changed
Expand file tree Collapse file tree 1 file changed +27
-15
lines changed Original file line number Diff line number Diff line change 1+ namespace TodoApp . Model {
12
3+ export interface Todo {
4+ id : number ;
5+ name : string ;
6+ state : TodoState ;
7+ }
28
3- interface Todo {
4- id : number ;
5- name : string ;
6- state : TodoState ;
79}
810
9- /* START: TodoState */
10- enum TodoState {
11- New = 1 ,
12- Active ,
13- Complete ,
14- Deleted
11+ namespace TodoApp . Model {
12+
13+ export enum TodoState {
14+ New = 1 ,
15+ Active ,
16+ Complete ,
17+ Deleted
18+ }
1519}
1620
17- interface ITodoService {
18- add ( todo : Todo ) : Todo ;
19- delete ( todoId : number ) : void ;
20- getAll ( ) : Todo [ ] ;
21- getById ( todoId : number ) : Todo ;
21+ namespace DataAccess {
22+
23+ import Model = TodoApp . Model ;
24+ import Todo = Model . Todo ;
25+
26+ export interface ITodoService {
27+ add ( todo : Todo ) : Todo ;
28+ delete ( todoId : number ) : void ;
29+ getAll ( ) : Todo [ ] ;
30+ getById ( todoId : number ) : Todo ;
31+ }
32+
2233}
34+
You can’t perform that action at this time.
0 commit comments