Typescript Function Variable Generic Vyvanse