React Typescript Interface With Functions In C