Radish alpha
r
Radicle desktop app
Radicle
Git (anonymous pull)
Log in to clone via SSH
Use `number` as type instead of `bigint`
Sebastian Martinez committed 1 year ago
commit 98bd1ee6b54b86b16528391b2d1fd30db1642d46
parent c17c65945878e661a751a3e7a3c620319a0562de
4 files changed +6 -6
modified crates/radicle-tauri/bindings/Edit.ts
@@ -3,7 +3,7 @@ import type { Author } from "./Author";

export type Edit = {
  author: Author;
-
  timestamp: bigint;
+
  timestamp: number;
  body: string;
  embeds: { name: string; content: string };
};
modified crates/radicle-tauri/bindings/Review.ts
@@ -9,5 +9,5 @@ export type Review = {
  verdict?: "accept" | "reject";
  summary: string | null;
  comments: Array<Comment<CodeLocation>>;
-
  timestamp: bigint;
+
  timestamp: number;
};
modified crates/radicle-tauri/bindings/Revision.ts
@@ -13,7 +13,7 @@ export type Revision = {
  base: string;
  head: string;
  reviews: Array<Review>;
-
  timestamp: bigint;
+
  timestamp: number;
  discussion: Array<Comment<CodeLocation>>;
  reactions: Array<Reaction>;
};
modified crates/radicle-tauri/src/types/cobs.rs
@@ -154,7 +154,7 @@ pub struct Revision {
    #[ts(as = "String")]
    head: git::Oid,
    reviews: Vec<Review>,
-
    #[ts(as = "i64")]
+
    #[ts(type = "number")]
    timestamp: cob::common::Timestamp,
    discussion: Vec<thread::Comment<thread::CodeLocation>>,
    reactions: Vec<Reaction>,
@@ -253,7 +253,7 @@ pub struct Review {
    verdict: Option<cob::patch::Verdict>,
    summary: Option<String>,
    comments: Vec<thread::Comment<thread::CodeLocation>>,
-
    #[ts(as = "i64")]
+
    #[ts(type = "number")]
    timestamp: cob::common::Timestamp,
}

@@ -283,7 +283,7 @@ impl Review {
#[serde(rename_all = "camelCase")]
pub struct Edit {
    pub author: Author,
-
    #[ts(as = "i64")]
+
    #[ts(type = "number")]
    pub timestamp: cob::common::Timestamp,
    pub body: String,
    #[ts(type = "{ name: string, content: string }")]