Typescript Method Parameter Object Python Example Main Idea