Sprotty
Toggle Dark/Light/Auto modeToggle Dark/Light/Auto modeToggle Dark/Light/Auto modeBack to homepage

Function.Get Basic Type

sprotty-protocol / getBasicType

Function: getBasicType()

getBasicType(element): string

Defined in: utils/model-utils.ts:62

Model element types can include a colon to separate the basic type and a sub-type. This function extracts the basic type of a model element.

Parameters

element

type

string

Returns

string