Typescript Declare Function Variable C