-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdata.ts
42 lines (39 loc) · 820 Bytes
/
data.ts
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import { Book, Author } from 'types/data';
const authors: Author[] = [
{ id: 'author_uid1', name: 'Marc Elsberg', age: 47 },
{ id: 'author_uid2', name: 'Robert Ludlum' },
{ id: 'author_uid3', name: 'Agatha Christie', age: 99 },
];
const books: Book[] = [
{
author: 'author_uid1',
genre: 'Thriller',
id: 'book_uid1',
title: 'Blackout',
},
{
author: 'author_uid1',
genre: 'Thriller',
id: 'book_uid2',
title: 'Zero',
},
{
author: 'author_uid1',
genre: 'Thriller',
id: 'book_uid3',
title: 'Helix',
},
{
author: 'author_uid2',
genre: 'Action',
id: 'book_uid4',
title: 'Die Janson-Option',
},
{
author: 'author_uid3',
genre: 'Krimi',
id: 'book_uid5',
title: 'Mord im Orient-Express',
},
];
export { books, authors };