Move ICommentTree to @rondo/common

This commit is contained in:
Jerko Steiner 2019-01-22 11:59:21 +01:00
parent 2e0402b189
commit 0c70a3b688
4 changed files with 12 additions and 10 deletions

View File

@ -0,0 +1,8 @@
import {IComment} from './IComment'
export interface ICommentTree {
rootIds: number[],
commentsById: {
[key: number]: IComment
}
}

View File

@ -1,5 +1,6 @@
export * from './IAPIDef'
export * from './IComment'
export * from './ICommentTree'
export * from './ICredentials'
export * from './IRoutes'
export * from './IUser'

View File

@ -1,7 +1,7 @@
import {BaseService} from './BaseService'
import {Comment} from '../entities/Comment'
import {ICommentService, ICommentTree} from './ICommentService'
import {IComment} from '@rondo/common'
import {ICommentService} from './ICommentService'
import {IComment, ICommentTree} from '@rondo/common'
import {Spam} from '../entities/Spam'
import {Validator} from '../validator'
import {Vote} from '../entities/Vote'

View File

@ -1,11 +1,4 @@
import {IComment} from '@rondo/common'
export interface ICommentTree {
rootIds: number[],
commentsById: {
[key: number]: IComment
}
}
import {IComment, ICommentTree} from '@rondo/common'
export interface ICommentService {
find(storyId: number): Promise<ICommentTree>