Update model interfaces to require all attributes
parent
4c014600c5
commit
c17d79d16c
|
@ -1,20 +1,20 @@
|
||||||
export interface Name {
|
export interface Name {
|
||||||
firstName?: string;
|
firstName: string;
|
||||||
lastName?: string;
|
lastName: string;
|
||||||
middleName?: string;
|
middleName: string;
|
||||||
prefix?: string;
|
prefix: string;
|
||||||
suffix?: string;
|
suffix: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Address {
|
export interface Address {
|
||||||
line_1?: string;
|
line_1: string;
|
||||||
line_2?: string;
|
line_2: string;
|
||||||
city?: string;
|
city: string;
|
||||||
state?: string;
|
state: string;
|
||||||
postalCode?: string;
|
postalCode: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Contact {
|
export interface Contact {
|
||||||
name?: Name;
|
name: Name;
|
||||||
addresses?: Address[];
|
addresses: Address[];
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,12 +14,14 @@ const contact: Contact = {
|
||||||
addresses: [
|
addresses: [
|
||||||
{
|
{
|
||||||
line_1: '123 Main Street',
|
line_1: '123 Main Street',
|
||||||
|
line_2: null,
|
||||||
city: 'New York',
|
city: 'New York',
|
||||||
state: 'NY',
|
state: 'NY',
|
||||||
postalCode: '12345',
|
postalCode: '12345',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
line_1: '123 South Street',
|
line_1: '123 South Street',
|
||||||
|
line_2: null,
|
||||||
city: 'Boston',
|
city: 'Boston',
|
||||||
state: 'MA',
|
state: 'MA',
|
||||||
postalCode: '54321',
|
postalCode: '54321',
|
||||||
|
|
Loading…
Reference in New Issue