-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSource.ts
More file actions
23 lines (20 loc) · 754 Bytes
/
Source.ts
File metadata and controls
23 lines (20 loc) · 754 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// ----------------------------------------------------------------
// PURPOSE:
// This library implements the Source serialiser.
//
// 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 { SerializedImage } from './Image'
import { SerializedPerson } from './Person'
import { SerializedText } from './Text'
export interface SerializedSource extends Serialized {
Title?: SerializedText
Link?: SerializedText
Year?: number
Authors?: Array<SerializedPerson>
Avatar?: SerializedImage
}