Function: assetsToVersion2()
assetsToVersion2(
type,name):AssetFileMigration
Defined in: src/lib/assets/index.ts:86
Moves the assets of a version 1 collection file (header and content side by side) into version 2's shape (see
toAsset), giving those without a name name and those without an author the user.
Parameters
type
string
name
string
Returns
Example
assetsToVersion2("PaintCanvas/BrushPreset", "Untitled brush");