From e939d5172072858e4775cb35d88eab1526cf8f2b Mon Sep 17 00:00:00 2001 From: "S.long" Date: Fri, 8 May 2020 16:51:47 +0700 Subject: [PATCH] fix not recognize --- README.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 27d7a11..f9925d5 100644 --- a/README.md +++ b/README.md @@ -43,29 +43,29 @@ type Color = "red" | "blue" | { Creation of Interface ```ts interface Product { - each sub of interface is equal to creation of type + // each sub of interface is equal to creation of type name: string, - Question mark(?) mean it optional , - when create product , no need implement "qty" + // Question mark(?) mean it optional , + // when create product , no need implement "qty" qty?: number, - it can be interface + // it can be interface creator: User, - or it can be type + // or it can be type color?: Color - or it can be direct declare like interface + // or it can be direct declare like interface price?: { currency: string , value: number }, - or direct declare like type + // or direct declare like type level?: 1 | 2 | 3, - or Array + // or Array details: Array - or Enum + // or Enum productType: PRODUCT_TYPE } ```