mirror of
https://github.com/outline/outline.git
synced 2025-12-30 07:19:52 -06:00
12 lines
327 B
TypeScript
12 lines
327 B
TypeScript
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}` : "";
|
|
}
|
|
}
|