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 1
1
// 매핑된 타입은 다른 타입 기반의 새로운 타입을 만드는 방법입니다.
2
- // 이것은 효과적인 변형 타입입니다.
2
+ // 또한 효과적인 변형 타입입니다.
3
3
4
- // 매핑된 타입을 사용하는 일반적인 경우는
4
+ // 매핑된 타입을 사용하는 일반적인 케이스는
5
5
// 기존 타입의 부분적인 하위집합을 다루는 것입니다.
6
6
// 예를 들어 API는 Artist를 반환할 수 있습니다:
7
7
@@ -36,15 +36,15 @@ type MyPartialType<Type> = {
36
36
type MappedArtistForEdit = MyPartialType < Artist > ;
37
37
38
38
// 완벽에 가깝지만,
39
- // id가 절대 일어나지 않아야만 하는 null이 될 수 있게 해줍니다.
39
+ // id가 절대 발생하면 안되는 null이 될 수 있게 해줍니다.
40
40
// 그래서 교집합 타입을 사용하여 빠르게 하나를 개선해 봅시다.
41
- // (예시를 볼 수 있습니다 :union-and-intersection-types)
41
+ // (예시를 살펴보세요 :union-and-intersection-types)
42
42
43
43
type MyPartialTypeForEdit < Type > = {
44
44
[ Property in keyof Type ] ?: Type [ Property ] ;
45
45
} & { id : number } ;
46
46
47
- // 매핑된 타입의 부분적인 결과를 가지고
47
+ // 매핑된 타입의 부분적인 결과를 가지며
48
48
// id: number set를 가진 객체와 병합합니다.
49
49
// 효과적으로 id를 강제로 타입 안에 넣어줍니다.
50
50
You can’t perform that action at this time.
0 commit comments