Typescript Passing Function As Parameter Scala Funeral Home