ChatGPT allowed me to create complex generic functions in typescript in no time. The code does what I want while not having to spend time into a long documentation investigation. Especially good if one starts with Typescript. Game changer.