Skip to content

Commit c0991cd

Browse files
committed
[ko] Update ko/docs/handbook/utility-types
1 parent 0e45926 commit c0991cd

File tree

1 file changed

+28
-19
lines changed

1 file changed

+28
-19
lines changed

docs/documentation/ko/reference/Utility Types.md

Lines changed: 28 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,24 @@ const todo2 = updateTodo(todo1, {
3434
});
3535
```
3636

37+
## `Required<Type>`
38+
39+
`Type` 집합의 모든 프로퍼티를 필수로 설정한 타입을 생성합니다. [`Partial`](#partialtype)의 반대입니다.
40+
41+
##### 예제
42+
43+
```ts twoslash
44+
// @errors: 2741
45+
interface Props {
46+
a?: number;
47+
b?: string;
48+
}
49+
50+
const obj: Props = { a: 5 };
51+
52+
const obj2: Required<Props> = { a: 5 };
53+
```
54+
3755
## `Readonly<Type>`
3856

3957
`Type` 집합의 모든 프로퍼티`읽기 전용(readonly)`으로 설정한 타입을 생성합니다, 즉 생성된 타입의 프로퍼티는 재할당될 수 없습니다.
@@ -279,24 +297,6 @@ type T4 = InstanceType<Function>;
279297
// ^?
280298
```
281299

282-
## `Required<Type>`
283-
284-
필요한 `T`집합의 모든 프로퍼티로 구성된 타입을 생성합니다. [`Partial`](#partialtype) 의 반대쪽.
285-
286-
##### 예제
287-
288-
```ts twoslash
289-
// @errors: 2741
290-
interface Props {
291-
a?: number;
292-
b?: string;
293-
}
294-
295-
const obj: Props = { a: 5 };
296-
297-
const obj2: Required<Props> = { a: 5 };
298-
```
299-
300300
## `ThisParameterType<Type>`
301301

302302
함수 타입의 [this](/docs/handbook/functions.html#this-parameters) 매개변수의 타입, 또는 함수 타입에 `this`매개변수가 없을 경우 [unknown](/docs/handbook/release-notes/typescript-3-0.html#new-unknown-top-type) 을 추출합니다.
@@ -369,4 +369,13 @@ obj.moveBy(5, 5);
369369

370370
## 내장 문자열 조작 타입
371371

372-
템플릿 문자열 리터럴 주변의 문자열 조작을 돕기 위해, TypeScript는 타입 시스템 내에서 문자열 조작에 사용할 수 있는 타입 집합이 포함되어 있습니다. 할 수 있어요
372+
### `Uppercase<StringType>`
373+
374+
### `Lowercase<StringType>`
375+
376+
### `Capitalize<StringType>`
377+
378+
### `Uncapitalize<StringType>`
379+
380+
템플릿 문자열 리터럴에서의 문자열 조작을 돕기 위해, TypeScript는 타입 시스템 내에서 문자열 조작에 사용할 수 있는 타입 집합이 포함되어 있습니다.
381+
[이 링크](/docs/handbook/2/template-literal-types.html#intrinsic-string-manipulation-types)에서 예제를 확인하세요.

0 commit comments

Comments
 (0)