Typescript Object Type Function Matlab Simulink