Union return types are not dynamic, so even though we know that book is type string and books is type string[] , the TypeScript compiler treats the return value ...
確定! 回上一頁