Skip to content

Commit f33219a

Browse files
author
Orta
authored
Merge pull request microsoft#1107 from wataash/adv-type-fix-compile
Fix compilation in Advanced Types.md
2 parents 506b5ac + 833969c commit f33219a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pages/Advanced Types.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -840,7 +840,7 @@ Once you return the `T[K]` result, the compiler will instantiate the actual type
840840

841841
```ts
842842
let name: string = getProperty(taxi, 'manufacturer');
843-
let age: number = getProperty(taxi, 'model');
843+
let year: number = getProperty(taxi, 'year');
844844

845845
// error, 'unknown' is not in 'manufacturer' | 'model' | 'year'
846846
let unknown = getProperty(taxi, 'unknown');

0 commit comments

Comments
 (0)