generationOf
generationOf(
rev):number
Defined in: libs/content-revision/src/lib/revision.ts:47
The generation of a revision: the number before the dash, 1 for an entity’s first revision.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”number
Throws
Section titled “Throws”if rev is not <generation>-<digest>.
TypeDBLite is an independent open-source project, built on TypeDB with thanks. It is not affiliated with, sponsored by, or endorsed by TypeDB Ltd. Released under the MPL-2.0 license.