Type script

Intersection Type

헤이봄봄 2021. 4. 15. 16:36

Intersection Type

Union타입의 반대개념 " & " 

Student 타입과 Worker 타입을 합친 

internWork 함수를 호출할 때에는, Student 타입과 Worker 타입에 들어있는 property를 모두 작성해야 한다