Skip to content

Commit

Permalink
docs(Partial): Update Partial Syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
haejunejung committed Aug 12, 2024
1 parent a50d187 commit 8ae9e73
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions docs/ko/reference/built-in/Partial.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@

## 문법

`Partial<Type>`은 `Type`을 ν•˜λ‚˜μ˜ νŒŒλΌλ―Έν„°λ‘œ λ°›μœΌλ©°, 이 λ§€κ°œλ³€μˆ˜λŠ” μ„ νƒμ μœΌλ‘œ λ§Œλ“€κ³ μž ν•˜λŠ” 속성을 가진 νƒ€μž…μ„ λ‚˜νƒ€λ‚΄μš”.

```ts
type NewType = Partial<Type>;
type Partial<T> = { [K in keyof T]?: T[K] | undefined };
```

- **Type (T)**: μ„ νƒμ μœΌλ‘œ λ§Œλ“€κ³ μž ν•˜λŠ” 속성을 가진 νƒ€μž…μ΄μ—μš”.

## 예제


Expand Down
6 changes: 3 additions & 3 deletions docs/reference/built-in/Partial.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ The `Partial<Type>` utility type is available starting from TypeScript version 2

## Syntax

`Partial<Type>` takes a single type paramter, `Type`, which represents the type whose properties you want to make optional.

```ts
type PartialNewType = Partial<Type>;
type Partial<T> = { [K in keyof T]?: T[K] | undefined };
```

- **Type (T)**: The type whose properties you want to make optional.

## Examples

#### Example #1
Expand Down

0 comments on commit 8ae9e73

Please sign in to comment.