Editor model · function

fieldKindOf

The kind a declared type is inspected as.

function fieldKindOf(type: string):
import { fieldKindOf } from '@driftengine/editor';

Parameters

ParameterTypeDescription
typestring

In depth

An enum is reported as an enum and carries its name, which is as far as this package can honestly go: the variant list belongs to the module that declared it, and defineComponent is handed enum:Mood — a name and no variants. A panel that has the list shows the names; one that does not shows the integer, which is what the discriminant is.