Skip to content
This repository has been archived by the owner on Sep 12, 2023. It is now read-only.

Commit

Permalink
types(share): expose a list document type
Browse files Browse the repository at this point in the history
  • Loading branch information
lemredd committed Nov 5, 2022
1 parent 9cd2595 commit 1575bc6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions shareable/types/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
*/

import type { Serializable } from "$/types/general"
import type { DeserializedTagListDocument } from "$/types/documents/tag"
import type { DeserializedChatMessageListDocument } from "$/types/documents/chat_message"
import type { DeserializedRoleDocument, DeserializedRoleListDocument } from "$/types/documents/role"
import type { DeserializedPostDocument, DeserializedPostListDocument } from "$/types/documents/post"
Expand Down Expand Up @@ -121,6 +122,8 @@ interface RawPageProps<T extends Format = "serialized"> extends Serializable {

comments: OptionalPageProps<T, DeserializedCommentListDocument>
comment: OptionalPageProps<T, DeserializedCommentDocument>

tags: OptionalPageProps<T, DeserializedTagListDocument>
}

export type AdditionalPropNames<T extends Format = "serialized"> = keyof RawPageProps<T>
Expand Down

0 comments on commit 1575bc6

Please sign in to comment.