Typescript Declare Type With Function Gamemaker