Get rid of circular dependency
This commit is contained in:
parent
14425f740c
commit
d30d5c5bf6
2 changed files with 6 additions and 7 deletions
|
@ -1,7 +1,6 @@
|
|||
import { Option } from "@sniptt/monads";
|
||||
import { Expose, Transform } from "class-transformer";
|
||||
import { toOption, toUndefined } from "../utils";
|
||||
import { CommentReplyView, CommentView, PersonMentionView } from "./views";
|
||||
export const VERSION = "v3";
|
||||
|
||||
/**
|
||||
|
@ -217,9 +216,3 @@ export class SiteMetadata {
|
|||
Object.assign(this, init);
|
||||
}
|
||||
}
|
||||
|
||||
export interface CommentNode {
|
||||
comment_view: CommentView | PersonMentionView | CommentReplyView;
|
||||
children: CommentNode[];
|
||||
depth: number;
|
||||
}
|
||||
|
|
|
@ -401,3 +401,9 @@ export class RegistrationApplicationView {
|
|||
@Type(() => PersonSafe)
|
||||
admin: Option<PersonSafe>;
|
||||
}
|
||||
|
||||
export interface CommentNode {
|
||||
comment_view: CommentView | PersonMentionView | CommentReplyView;
|
||||
children: CommentNode[];
|
||||
depth: number;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue