i399exng1ts/app/data.srv.i.ts
2017-05-17 18:36:09 +03:00

9 lines
144 B
TypeScript

import { Post } from './post.cls';
export interface DataService {
addPost(post: Post): Promise<void>;
getPosts(): Promise<Post[]>;
}