Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Commit 5eb56c0

Browse files
Update Advanced Types.md
1 parent 8938679 commit 5eb56c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pages/Advanced Types.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -777,7 +777,7 @@ In a mapped type, the new type transforms each property in the old type in the s
777777
For example, you can make all properties of a type `readonly` or optional.
778778
Here are a couple of examples:
779779

780-
```ts
780+
```ts
781781
type Readonly<T> = {
782782
readonly [P in keyof T]: T[P];
783783
}
@@ -892,4 +892,4 @@ let originalProps = unproxify(proxyProps);
892892
```
893893

894894
Note that this unwrapping inference only works on homomorphic mapped types.
895-
If the mapped type is not homomorphic you will have to explicitly give a type parameter to your unwrapping function.
895+
If the mapped type is not homomorphic you'll have to give an explicit type parameter to your unwrapping function.

0 commit comments

Comments
 (0)