chore: organize types
This commit is contained in:
@@ -2,11 +2,11 @@ import { z } from "zod"
|
||||
|
||||
import { Lang } from "@/constants/languages"
|
||||
|
||||
import { Embeds } from "@/types/requests/embeds"
|
||||
import {
|
||||
ContentEntries,
|
||||
DynamicContentComponents,
|
||||
} from "@/types/requests/myPages/accountpage"
|
||||
} from "@/types/components/myPages/myPage/enums"
|
||||
import { Embeds } from "@/types/requests/embeds"
|
||||
import { Edges } from "@/types/requests/utils/edges"
|
||||
import { RTEDocument } from "@/types/rte/node"
|
||||
|
||||
@@ -97,7 +97,10 @@ export type RteTextContent = Omit<TextContentRaw, "text_content"> & {
|
||||
}
|
||||
}
|
||||
|
||||
type AccountPageContentItem = DynamicContentRaw | ShortcutsRaw | RteTextContent
|
||||
export type AccountPageContentItem =
|
||||
| DynamicContentRaw
|
||||
| ShortcutsRaw
|
||||
| RteTextContent
|
||||
|
||||
const accountPageContentItem = z.discriminatedUnion("__typename", [
|
||||
accountPageShortcuts,
|
||||
|
||||
Reference in New Issue
Block a user