mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-21 06:10:44 +08:00
Use number as type instead of bigint
This commit is contained in:
@@ -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 };
|
||||
};
|
||||
|
||||
@@ -9,5 +9,5 @@ export type Review = {
|
||||
verdict?: "accept" | "reject";
|
||||
summary: string | null;
|
||||
comments: Array<Comment<CodeLocation>>;
|
||||
timestamp: bigint;
|
||||
timestamp: number;
|
||||
};
|
||||
|
||||
@@ -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>;
|
||||
};
|
||||
|
||||
@@ -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 }")]
|
||||
|
||||
Reference in New Issue
Block a user