Typescript Declare Type With Function Game Maker