createShapePropsMigrationIds
function createShapePropsMigrationIds<
const S extends string,
const T extends Record<string, number>,
>(
shapeType: S,
ids: T
): {
[k in keyof T]: `com.tldraw.shape.${S}/${T[k]}`
}
Parameters
Name | Description |
---|---|
|
|
|
|
Returns
{
[k in keyof T]: `com.tldraw.shape.${S}/${T[k]}`
}