Get rid of circular dependency

This commit is contained in:
Dessalines 2022-07-27 15:10:44 -04:00
parent 14425f740c
commit d30d5c5bf6
2 changed files with 6 additions and 7 deletions

View file

@ -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;
}

View file

@ -401,3 +401,9 @@ export class RegistrationApplicationView {
@Type(() => PersonSafe)
admin: Option<PersonSafe>;
}
export interface CommentNode {
comment_view: CommentView | PersonMentionView | CommentReplyView;
children: CommentNode[];
depth: number;
}