Skip to main content

Function: getSnapshotModelType()

function getSnapshotModelType(snapshot): string | undefined;

Gets the model type name from a model snapshot.

Parameters​

ParameterTypeDescription
snapshotunknownThe snapshot to get the model type from.

Returns​

string | undefined

The model type name if the snapshot is a model snapshot, undefined otherwise.