moveStyleImport

open fun moveStyleImport(importId: String, importPosition: ImportPosition?): Expected<String, None>

Moves import to position before another import, specified with beforeId. Order of imported styles corresponds to order of their layers.

Return

A string describing an error if the operation was not successful, or empty otherwise.

Parameters

importId

Identifier of import to move.

importPosition

The import will be positioned according to the ImportPosition parameters. If not specified, then the import is moved to the top of the import stack.