createShapePropsMigrationIds

See source code
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

NameDescription

shapeType

S

ids

T

Returns

{
  [k in keyof T]: `com.tldraw.shape.${S}/${T[k]}`
}
Prev
createShapeId
Next
createShapePropsMigrationSequence