16 lines
349 B
TypeScript
16 lines
349 B
TypeScript
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"][];
|
|
}
|