From 0b3bcff5db670a20b4f7ed4e97322947ef352d25 Mon Sep 17 00:00:00 2001 From: zhongsp Date: Sat, 27 Jan 2018 07:54:33 +0800 Subject: [PATCH] Fix typo in optional interface property example. PR716 --- doc/handbook/Interfaces.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/handbook/Interfaces.md b/doc/handbook/Interfaces.md index c4cb97c..f1d2c30 100644 --- a/doc/handbook/Interfaces.md +++ b/doc/handbook/Interfaces.md @@ -85,7 +85,7 @@ interface SquareConfig { function createSquare(config: SquareConfig): { color: string; area: number } { let newSquare = {color: "white", area: 100}; - if (config.color) { + if (config.clor) { // Error: Property 'clor' does not exist on type 'SquareConfig' newSquare.color = config.clor; }