How to ensure TypeScript that string|string[] is string without using as?

前端 未结 2 2019
旧时难觅i
旧时难觅i 2021-01-20 04:32

edit
Due to course of time, this question has lost its validity, as it seems from the comments and answers to this one. Despite initial appearance, it\

2条回答
提交回复
热议问题