@mocanvas/editor · function

createBuiltInAssetPropsMigrationIds

declare function createBuiltInAssetPropsMigrationIds<const Type extends string, const Versions extends Record<string, number>>(assetType: Type, versions: Versions): {
    readonly [K in keyof Versions]: `${typeof BUILTIN_ASSET_MIGRATION_SEQUENCE_PREFIX}.${Type}/${Versions[K]}`;
}

Migration ids for an asset type **this library ships**, under BUILTIN_ASSET_MIGRATION_SEQUENCE_PREFIX.

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.