Typescript Define Type With Function Gamemaker