Notice that TypeScript not only knows that pet is a Fish in the if branch; ... You may use the type guard isFish to filter an array of Fish | Bird and ...
確定! 回上一頁