I stepped into a project at work to help out knowing almost no typescript and wrote angular http routines that just worked in a few hours with chatGPT. first we started with any and then we built out an interface and it helped me use the map function in http to build out a result array without any intermediate array creation.
I 100% would not have written the code as well as it came out with gpt's help.
Of course, GPT remains the best (after real human teacher) learning/discovery tool available nowadays, so it summarised (luckily for you, not hallucinated this time) some information together to get your job done. However, one could use his tooling documentation manuals to get the same job done in the same amount of time without prior knowledge? A senior engineer would just do it as fast as his fingers can type without the need to learn it prior. Oh, also he will be able to maintain it!
I 100% would not have written the code as well as it came out with gpt's help.