Skip to content

@vttforge/core / convertSubTypes

Function: convertSubTypes()

convertSubTypes<T>(options): Promise<ConvertedSubTypes>

Convert every document of one of this module's sub-types to another type.

One update each, in place: ids, flags, folders, ownership and embedded documents all survive. Run it from a settings button or a macro, before the user switches the module off.

Type Parameters

T

T extends SubTypedDocument = SubTypedDocument

Parameters

options

ConvertSubTypesOptions<T>

Returns

Promise<ConvertedSubTypes>

MIT licensed.