Skip to main content

Type Alias: StoredEntry

StoredEntry = Entry & object

Defined in: types/entry.types.ts:369

An entry that has been through storage.

id and createdAt are optional on Entry because a watcher has neither when it hands an entry over — storage assigns both. Every read path then knows they are there, which used to be written as a non-null assertion at each use. Saying it once in the type is the same claim, checked by the compiler instead of asserted by hand.

Type Declaration​

createdAt​

createdAt: string

id​

id: number