Skip to main content

Home > @jsplumbtoolkit/core > Graph > getType

Graph.getType() method

Gets the type for some data, by running it through the current typeFunction.

Signature:

getType(data: ObjectData): string;

Parameters

ParameterTypeDescription
dataObjectDataObject to get type from.

Returns:

string

The calculated type for the given object.