Function: newDocumentInfo()
newDocumentInfo(
author?,name?,now?):DocumentInfo
Defined in: src/lib/document/index.ts:90
Details for a new document: a new ID, a name, an author, and the time now (as when it was made, opened and changed).
Parameters
author?
name?
string = UNTITLED_DOCUMENT_NAME
now?
Date = ...
Returns
Example
newDocumentInfo("Ada"); // { id: "1b9d…", name: "Untitled", author: [{ name: "Ada" }], dateCreated: "2026-…", updatedAt: "2026-…", … }