Person.ts 387 Bytes
Newer Older
1
/**
Daniel Bluhm's avatar
Daniel Bluhm committed
2
3
4
 * Person DataElement.
 * In the future, we hope to be able to generate data structures like this
 * directly from DataElement Spec classes.
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
 */

import { DataElement } from "./data-element";

export class Person extends DataElement {
	age: number;
	firstName: string;
	lastName: string;

	constructor() {
		super();
		this.age = -1;
		this.firstName = "";
		this.lastName = "";
	}
}