Skip to content

Commit 4f6cd8a

Browse files
committed
Use Optional over Nullable for optional fields.
1 parent 5fdb0f2 commit 4f6cd8a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

functions/src/events/types.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import {
44
Literal as L,
55
Null,
66
Number,
7+
Optional,
78
Record,
89
Runtype,
910
Static,
@@ -77,9 +78,9 @@ export type Hearing = Static<typeof Hearing>
7778
export const Hearing = BaseEvent.extend({
7879
type: L("hearing"),
7980
content: HearingContent,
80-
videoURL: Nullable(String),
81-
videoAssemblyId: Nullable(String),
82-
videoFetchedAt: Nullable(InstanceOf(Timestamp))
81+
videoURL: Optional(String),
82+
videoAssemblyId: Optional(String),
83+
videoFetchedAt: Optional(InstanceOf(Timestamp))
8384
})
8485

8586
export type Event = Static<typeof Event>

0 commit comments

Comments
 (0)