Skip to content

eo-typewriterjs


eo-typewriterjs / resolveStyleRef

Function: resolveStyleRef()

ts
function resolveStyleRef(ref): TStyleObject;

Defined in: core/state/helpers/segment-rich-text.helper.ts:13

Parameters

ParameterTypeDescription
refTStyleRefThe style reference to resolve

Returns

TStyleObject

A TStyleObject

Description

Resolve a TStyleRef to a TStyleObject, normalising string shorthand to className

Released under the MIT License.