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