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 './IAPIDef'
|
||||||
export * from './IComment'
|
export * from './IComment'
|
||||||
|
export * from './ICommentTree'
|
||||||
export * from './ICredentials'
|
export * from './ICredentials'
|
||||||
export * from './IRoutes'
|
export * from './IRoutes'
|
||||||
export * from './IUser'
|
export * from './IUser'
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
import {BaseService} from './BaseService'
|
import {BaseService} from './BaseService'
|
||||||
import {Comment} from '../entities/Comment'
|
import {Comment} from '../entities/Comment'
|
||||||
import {ICommentService, ICommentTree} from './ICommentService'
|
import {ICommentService} from './ICommentService'
|
||||||
import {IComment} from '@rondo/common'
|
import {IComment, ICommentTree} from '@rondo/common'
|
||||||
import {Spam} from '../entities/Spam'
|
import {Spam} from '../entities/Spam'
|
||||||
import {Validator} from '../validator'
|
import {Validator} from '../validator'
|
||||||
import {Vote} from '../entities/Vote'
|
import {Vote} from '../entities/Vote'
|
||||||
|
|||||||
@ -1,11 +1,4 @@
|
|||||||
import {IComment} from '@rondo/common'
|
import {IComment, ICommentTree} from '@rondo/common'
|
||||||
|
|
||||||
export interface ICommentTree {
|
|
||||||
rootIds: number[],
|
|
||||||
commentsById: {
|
|
||||||
[key: number]: IComment
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface ICommentService {
|
export interface ICommentService {
|
||||||
find(storyId: number): Promise<ICommentTree>
|
find(storyId: number): Promise<ICommentTree>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user