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)]