File size: 502 Bytes
b593f0b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
export interface BookModel {
  id: string
  title: string
  author?: string
}

export const AClockworkOrange: BookModel = Object.freeze({
  id: 'aco',
  title: 'A Clockwork Orange',
})

export const AnimalFarm: BookModel = Object.freeze({
  id: 'af',
  title: 'Animal Farm',
})

export const TheGreatGatsby: BookModel = Object.freeze({
  id: 'tgg',
  title: 'The Great Gatsby',
})

export const TheHobbit: BookModel = Object.freeze({
  id: 'th',
  title: 'The Hobbit',
  author: 'J. R. R. Tolkien',
})