Files
outline/shared/utils/RevisionHelper.ts

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}` : "";
}
}