n39librarian/middleware/types/Book.ts

17 lines
349 B
TypeScript
Raw Permalink Normal View History

export type Book = {
id: number;
uuid: string;
isbn: string;
title: string;
published: number;
lastCheckoutDate: number | null;
checkoutBy: string | null;
contact: string | null;
shelf: "AVAILABLE" | "FNORD1" | "FNORD2" | "SHARING" | null;
};
export interface MoveShelfAction {
target: Book["shelf"];
books: Book["uuid"][];
}