Fix entry_id field to camelCase

This commit is contained in:
Sebastian Martinez
2024-10-23 12:47:52 +02:00
committed by Rūdolfs Ošiņš
parent 9b2240b933
commit fc8613606d
3 changed files with 2 additions and 8 deletions
@@ -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>;
}
+1
View File
@@ -50,6 +50,7 @@ impl Issue {
}
#[derive(Serialize, TS)]
#[serde(rename_all = "camelCase")]
#[ts(export)]
#[ts(export_to = "cob/issue/")]
pub struct Operation {