I randomly asked ChatGPT to solve a TypeScript challenge (15, Last of Array). To make things worse, I asked in Polish. It actually gave me the correct type definition, but I had to specifically tell it to only use types and avoid unions. It worked after some tries.