Typescript Get Type From Function Python Tutorial W3schools