Move ICommentTree to @rondo/common
This commit is contained in:
parent
2e0402b189
commit
0c70a3b688
8
packages/common/src/ICommentTree.ts
Normal file
8
packages/common/src/ICommentTree.ts
Normal file
@ -0,0 +1,8 @@
|
||||
import {IComment} from './IComment'
|
||||
|
||||
export interface ICommentTree {
|
||||
rootIds: number[],
|
||||
commentsById: {
|
||||
[key: number]: IComment
|
||||
}
|
||||
}
|
||||
@ -1,5 +1,6 @@
|
||||
export * from './IAPIDef'
|
||||
export * from './IComment'
|
||||
export * from './ICommentTree'
|
||||
export * from './ICredentials'
|
||||
export * from './IRoutes'
|
||||
export * from './IUser'
|
||||
|
||||
@ -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'
|
||||
|
||||
@ -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>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user