VersionDetails
Defined in: src/draft.ts:27
What a new version records about why and by whom it was made.
Properties
Section titled “Properties”createdAt?
Section titled “createdAt?”
readonlyoptionalcreatedAt?:Date
Defined in: src/draft.ts:40
When the version is dated, such as its original date in a migration. Defaults to now. Can’t be earlier than the head version’s date.
Example
Section titled “Example”await root.create(id, { message, user, createdAt: new Date('2019-03-01T00:00:00Z') }, build);message
Section titled “message”
readonlymessage:string
Defined in: src/draft.ts:29
Why the version is being made.
readonlyuser:User
Defined in: src/draft.ts:31
Who is making it.