Typescript Get Type Of Function Parameter Python