Typescript Get Type Of Function Parameter