Get a style's type
style.getType()
Retrieve a style’s type, as it appears in the Designer’s Styles panel. This method is synchronous, so it doesn’t require await.
You can also read a style’s type from the style.type property, which returns the same value.
Syntax
Returns
StyleType
A string describing the style’s type. Returns one of the following values:
'element' styles can appear in webflow.getAllStyles() results, but most style operations on them aren’t supported and reject with a resourceMissing error.