Skip to content

[F] getContentTypes

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

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

ParameterTypeDescription
propertyModelPropertyModel property

[string[], readonly Diagnostic[]]

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