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