File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
docs/playground/ko/TypeScript/Meta-Types Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 11// 매핑된 타입은 다른 타입 기반의 새로운 타입을 만드는 방법입니다.
2- // 이것은 효과적인 변형 타입입니다.
2+ // 또한 효과적인 변형 타입입니다.
33
4- // 매핑된 타입을 사용하는 일반적인 경우는
4+ // 매핑된 타입을 사용하는 일반적인 케이스는
55// 기존 타입의 부분적인 하위집합을 다루는 것입니다.
66// 예를 들어 API는 Artist를 반환할 수 있습니다:
77
@@ -36,15 +36,15 @@ type MyPartialType<Type> = {
3636type MappedArtistForEdit = MyPartialType < Artist > ;
3737
3838// 완벽에 가깝지만,
39- // id가 절대 일어나지 않아야만 하는 null이 될 수 있게 해줍니다.
39+ // id가 절대 발생하면 안되는 null이 될 수 있게 해줍니다.
4040// 그래서 교집합 타입을 사용하여 빠르게 하나를 개선해 봅시다.
41- // (예시를 볼 수 있습니다 :union-and-intersection-types)
41+ // (예시를 살펴보세요 :union-and-intersection-types)
4242
4343type MyPartialTypeForEdit < Type > = {
4444 [ Property in keyof Type ] ?: Type [ Property ] ;
4545} & { id : number } ;
4646
47- // 매핑된 타입의 부분적인 결과를 가지고
47+ // 매핑된 타입의 부분적인 결과를 가지며
4848// id: number set를 가진 객체와 병합합니다.
4949// 효과적으로 id를 강제로 타입 안에 넣어줍니다.
5050
You can’t perform that action at this time.
0 commit comments