Skip to main content
Version: Next 🚧

[F] getContentTypes

function getContentTypes(property): [string[], readonly Diagnostic[]]

Resolve the content types from a model property by looking at the value.

Parameters

ParameterTypeDescription
propertyModelPropertyModel property

Returns

[string[], readonly Diagnostic[]]

List of contnet types and any diagnostics if there was an issue.