mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-10 10:50:39 +08:00
Fix entry_id field to camelCase
This commit is contained in:
@@ -4,7 +4,7 @@ import type { Embed } from "../thread/Embed";
|
||||
import type { State } from "./State";
|
||||
|
||||
export type Operation = {
|
||||
entry_id: string;
|
||||
entryId: string;
|
||||
timestamp: number;
|
||||
author: Author;
|
||||
} & (
|
||||
|
||||
@@ -2,9 +2,6 @@
|
||||
import type { CodeLocation } from "../thread/CodeLocation";
|
||||
import type { Embed } from "../thread/Embed";
|
||||
|
||||
/**
|
||||
* Patch operation.
|
||||
*/
|
||||
export type Action =
|
||||
| { type: "edit"; title: string; target: string }
|
||||
| { type: "label"; labels: Array<string> }
|
||||
@@ -31,10 +28,6 @@ export type Action =
|
||||
review: string;
|
||||
body: string;
|
||||
location?: CodeLocation;
|
||||
/**
|
||||
* Comment this is a reply to.
|
||||
* Should be [`null`] if it's the top-level comment.
|
||||
*/
|
||||
reply_to?: string;
|
||||
embeds?: Array<Embed>;
|
||||
}
|
||||
|
||||
@@ -50,6 +50,7 @@ impl Issue {
|
||||
}
|
||||
|
||||
#[derive(Serialize, TS)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
#[ts(export)]
|
||||
#[ts(export_to = "cob/issue/")]
|
||||
pub struct Operation {
|
||||
|
||||
Reference in New Issue
Block a user