From 7cf21972cdcfecf235700519d6e1cc85d7c89bc1 Mon Sep 17 00:00:00 2001 From: Sebastian Martinez Date: Thu, 13 Mar 2025 08:02:02 +0100 Subject: [PATCH] Set `replyTo` and `location` fields in `Comment` to `null` --- crates/radicle-types/bindings/cob/thread/Comment.ts | 4 ++-- crates/radicle-types/src/cobs/thread.rs | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/crates/radicle-types/bindings/cob/thread/Comment.ts b/crates/radicle-types/bindings/cob/thread/Comment.ts index ed3ff4aa7..e4ea67c98 100644 --- a/crates/radicle-types/bindings/cob/thread/Comment.ts +++ b/crates/radicle-types/bindings/cob/thread/Comment.ts @@ -10,8 +10,8 @@ export type Comment = { author: Author; edits: Array; reactions: Array; - replyTo?: string; - location?: T; + replyTo: string | null; + location: T | null; embeds?: Array; resolved: boolean; }; diff --git a/crates/radicle-types/src/cobs/thread.rs b/crates/radicle-types/src/cobs/thread.rs index 89a1f7eeb..e9020cc15 100644 --- a/crates/radicle-types/src/cobs/thread.rs +++ b/crates/radicle-types/src/cobs/thread.rs @@ -42,9 +42,8 @@ pub struct Comment { author: cobs::Author, edits: Vec, reactions: Vec, - #[ts(as = "Option", optional)] + #[ts(as = "Option")] reply_to: Option, - #[ts(optional)] location: Option, #[serde(default, skip_serializing_if = "Vec::is_empty")] #[ts(as = "Option<_>", optional)]