You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`Type` 집합의 모든 프로퍼티를 필수로 설정한 타입을 생성합니다. [`Partial`](#partialtype)의 반대입니다.
40
+
41
+
##### 예제
42
+
43
+
```ts twoslash
44
+
// @errors: 2741
45
+
interfaceProps {
46
+
a?:number;
47
+
b?:string;
48
+
}
49
+
50
+
const obj:Props= { a: 5 };
51
+
52
+
const obj2:Required<Props> = { a: 5 };
53
+
```
54
+
37
55
## `Readonly<Type>`
38
56
39
57
`Type` 집합의 모든 프로퍼티`읽기 전용(readonly)`으로 설정한 타입을 생성합니다, 즉 생성된 타입의 프로퍼티는 재할당될 수 없습니다.
@@ -279,24 +297,6 @@ type T4 = InstanceType<Function>;
279
297
// ^?
280
298
```
281
299
282
-
## `Required<Type>`
283
-
284
-
필요한 `T`집합의 모든 프로퍼티로 구성된 타입을 생성합니다. [`Partial`](#partialtype) 의 반대쪽.
285
-
286
-
##### 예제
287
-
288
-
```ts twoslash
289
-
// @errors: 2741
290
-
interfaceProps {
291
-
a?:number;
292
-
b?:string;
293
-
}
294
-
295
-
const obj:Props= { a: 5 };
296
-
297
-
const obj2:Required<Props> = { a: 5 };
298
-
```
299
-
300
300
## `ThisParameterType<Type>`
301
301
302
302
함수 타입의 [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);
369
369
370
370
## 내장 문자열 조작 타입
371
371
372
-
템플릿 문자열 리터럴 주변의 문자열 조작을 돕기 위해, TypeScript는 타입 시스템 내에서 문자열 조작에 사용할 수 있는 타입 집합이 포함되어 있습니다. 할 수 있어요
372
+
### `Uppercase<StringType>`
373
+
374
+
### `Lowercase<StringType>`
375
+
376
+
### `Capitalize<StringType>`
377
+
378
+
### `Uncapitalize<StringType>`
379
+
380
+
템플릿 문자열 리터럴에서의 문자열 조작을 돕기 위해, TypeScript는 타입 시스템 내에서 문자열 조작에 사용할 수 있는 타입 집합이 포함되어 있습니다.
0 commit comments