-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBook.ts
More file actions
33 lines (30 loc) · 1.15 KB
/
Book.ts
File metadata and controls
33 lines (30 loc) · 1.15 KB
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
// ----------------------------------------------------------------
// PURPOSE:
// This library implements the Book serializers.
//
// JSON serializers:
// The main purpose is to save the state of an object in order to
// be able to recreate it when needed. The reverse process is called
// deserialization
// ----------------------------------------------------------------
import { Serialized } from '../interfaces/Serialized'
import { SerializedChapter } from './Chapter'
import { SerializedPerson } from './Person'
import { SerializedText } from './Text'
import { SerializedTopic } from './Topic'
import { SerializedEdition } from './Edition'
export interface SerializedBook extends Serialized {
Title?: SerializedText
Subtitle?: SerializedText
Audience?: Array<SerializedText>
Prerequisites?: Array<SerializedText>
Goal?: Array<SerializedText>
Chapters?: Array<SerializedChapter>
Authors?: Array<SerializedPerson>
Foreword?: Array<Serialized>
Afterword?: Array<Serialized>
Acknowledgements?: Array<SerializedText>
Legal?: Array<SerializedText>
Editions?: Array<SerializedEdition>
Topics?: Array<SerializedTopic>
}