IssueResponse definition and implementation

This commit is contained in:
Oliver Bryan
2025-12-14 22:13:30 +00:00
parent c22d38e2ae
commit 36b39da1bd
5 changed files with 43 additions and 25 deletions

View File

@@ -20,3 +20,8 @@ export {
IssueSelectSchema,
IssueInsertSchema,
} from "./schema";
// Responses
export {
IssueResponse,
} from "./schema"

View File

@@ -58,3 +58,10 @@ export type ProjectInsert = z.infer<typeof ProjectInsertSchema>;
export type IssueRecord = z.infer<typeof IssueSelectSchema>;
export type IssueInsert = z.infer<typeof IssueInsertSchema>;
// Responses
export type IssueResponse = {
Issue: IssueRecord;
User?: UserRecord;
};