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

Commit ee8de09

Browse files
Merge branch 'master' into 2.1ReleaseNotes
2 parents 03182cd + c54d118 commit ee8de09

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pages/Interfaces.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ interface SquareConfig {
8686
function createSquare(config: SquareConfig): { color: string; area: number } {
8787
let newSquare = {color: "white", area: 100};
8888
if (config.color) {
89-
// Error: Property 'collor' does not exist on type 'SquareConfig'
90-
newSquare.color = config.collor;
89+
// Error: Property 'color' does not exist on type 'SquareConfig'
90+
newSquare.color = config.color;
9191
}
9292
if (config.width) {
9393
newSquare.area = config.width * config.width;

0 commit comments

Comments
 (0)