Recapp Code Reference
    Preparing search index...

    Variable commentSchemaConst

    commentSchema: ZodObject<
        {
            answered: ZodBoolean;
            archived: ZodOptional<
                ZodEffects<
                    ZodObject<
                        { type: ZodEnum<["Timestamp"]>; value: ZodNumber },
                        "strip",
                        ZodTypeAny,
                        { type: "Timestamp"; value: number },
                        { type: "Timestamp"; value: number },
                    >,
                    Timestamp,
                    { type: "Timestamp"; value: number },
                >,
            >;
            authorId: ZodBranded<ZodString, "UID">;
            authorName: ZodString;
            created: ZodEffects<
                ZodObject<
                    { type: ZodEnum<["Timestamp"]>; value: ZodNumber },
                    "strip",
                    ZodTypeAny,
                    { type: "Timestamp"; value: number },
                    { type: "Timestamp"; value: number },
                >,
                Timestamp,
                { type: "Timestamp"; value: number },
            >;
            relatedQuestion: ZodOptional<ZodBranded<ZodString, "UID">>;
            relatedQuiz: ZodBranded<ZodString, "UID">;
            text: ZodString;
            uid: ZodBranded<ZodString, "UID">;
            updated: ZodEffects<
                ZodObject<
                    { type: ZodEnum<["Timestamp"]>; value: ZodNumber },
                    "strip",
                    ZodTypeAny,
                    { type: "Timestamp"; value: number },
                    { type: "Timestamp"; value: number },
                >,
                Timestamp,
                { type: "Timestamp"; value: number },
            >;
            upvoters: ZodArray<ZodBranded<ZodString, "UID">, "many">;
        },
        "strip",
        ZodTypeAny,
        {
            answered: boolean;
            archived?: Timestamp;
            authorId: string & BRAND<"UID">;
            authorName: string;
            created: Timestamp;
            relatedQuestion?: string & BRAND<"UID">;
            relatedQuiz: string & BRAND<"UID">;
            text: string;
            uid: string & BRAND<"UID">;
            updated: Timestamp;
            upvoters: (string & BRAND<"UID">)[];
        },
        {
            answered: boolean;
            archived?: { type: "Timestamp"; value: number };
            authorId: string;
            authorName: string;
            created: { type: "Timestamp"; value: number };
            relatedQuestion?: string;
            relatedQuiz: string;
            text: string;
            uid: string;
            updated: { type: "Timestamp"; value: number };
            upvoters: string[];
        },
    > = ...

    Convert a plain string (e.g. from user input or DB) into an Id.

    Note: This does not validate the string, it only adds the Id type brand. Use uidSchema.parse(...) if you want runtime validation.