Allow viewing diff before revision is written (#5399)

This commit is contained in:
Tom Moor
2023-05-29 22:49:13 -04:00
committed by GitHub
parent 555691c79b
commit 45641103ba
17 changed files with 313 additions and 179 deletions

View File

@@ -0,0 +1,11 @@
export class RevisionHelper {
/**
* Get a static id for the latest revision of a document.
*
* @param documentId The document to generate an ID for.
* @returns The ID of the latest revision of the document.
*/
static latestId(documentId?: string) {
return documentId ? `latest-${documentId}` : "";
}
}