Skip to content

Commit e79d10f

Browse files
committed
Mark name in ContactProfile as optional
Reported by @MrKoookaburra in #73
1 parent 518ea18 commit e79d10f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/types/contact-profile.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export interface ContactProfile {
3434
* - `"Foo & bar"`
3535
*/
3636
mood?: string;
37-
name: Name;
37+
name?: Name;
3838
about?: string;
3939

4040
/**
@@ -57,7 +57,7 @@ export const $ContactProfile: DocumentType<ContactProfile> = new DocumentType<Co
5757
locations: {type: new ArrayType({itemType: $Location, maxLength: Infinity}), optional: true},
5858
phones: {type: new ArrayType({itemType: $Phone, maxLength: Infinity}), optional: true},
5959
mood: {type: new Ucs2StringType({maxLength: Infinity}), optional: true},
60-
name: {type: $Name},
60+
name: {type: $Name, optional: true},
6161
about: {type: new Ucs2StringType({maxLength: Infinity}), optional: true},
6262
website: {type: new Ucs2StringType({maxLength: Infinity}), optional: true},
6363
language: {type: new Ucs2StringType({maxLength: Infinity}), optional: true},

0 commit comments

Comments
 (0)