PSA typescript function parameter passing: this.propType.Entity -> Hz.Entity
Debugging this took way too long for the wrong reason, for this Unity C# dev not familiar with typescript norms, so sharing this PSA
suppose you have a function that creates an entityArray from prop entities - you have to both | null the function definition argument and also add a ! when you pass the variable when calling the function:
private makeEntityArray(entity: hz.Entity | null){
}
makeEntityArray(this.propType.testEntity!);
