You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Scriban is a typeless language and its built-in functions do not care about returning the correct type.
As an alternative to what you already got, you could make a custom function to select public properties that will return IEnumerable<IProperty>, that way you should be able to use the original/typed version of GetClassTypes(IEnumerable<IProperty> publicProperties).
I have the following template code
where GetClassTypes is defined as
public static IEnumerable<IType> GetClassTypes(IEnumerable<IProperty> publicProperties)
When rendering I get the error "Unable to convert type
range
toIEnumerable<IProperty>
"Is there a way to join arrays and keep type information?
The text was updated successfully, but these errors were encountered: