Typescript Object With Functions As Equations