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

Commit e01a8bf

Browse files
committed
Update Advanced Types.md as per received comment.
1 parent a66068c commit e01a8bf

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
@@ -253,11 +253,11 @@ Here's a simple mixin example:
253253
function extend<T, U>(first: T, second: U): T & U {
254254
let result = <T & U>{};
255255
for (let id in first) {
256-
result[id] = first[id];
256+
(<any>result)[id] = (<any>first)[id];
257257
}
258258
for (let id in second) {
259259
if (!result.hasOwnProperty(id)) {
260-
result[id] = second[id];
260+
(<any>result)[id] = (<any>second)[id];
261261
}
262262
}
263263
return result;

0 commit comments

Comments
 (0)