interfaces.ts 229 B

12345678910111213141516
  1. import { Category } from "./enums";
  2. interface Book {
  3. author: string,
  4. available: boolean,
  5. category: Category;
  6. id: number,
  7. pages?: number,
  8. title: string,
  9. markDamaged: (reason: string) => void,
  10. }
  11. export {
  12. Book,
  13. }