@mocanvas/editor · function
declare function createShapePropsMigrationIds<const Type extends string, const Versions extends Record<string, number>>(shapeType: Type, versions: Versions): {
readonly [K in keyof Versions]: `${typeof SHAPE_MIGRATION_SEQUENCE_PREFIX}.${Type}/${Versions[K]}`;
}Migration ids for a shape type, from friendly version names:
``ts
const versions = createShapePropsMigrationIds("format", { AddColor: 1 })
// versions.AddColor === "com.tldraw.shape.format/1"
``
mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.