fix not recognize

This commit is contained in:
S.long 2020-05-08 16:51:47 +07:00
parent 6b641fd067
commit e939d51720

View File

@ -43,29 +43,29 @@ type Color = "red" | "blue" | {
Creation of Interface Creation of Interface
```ts ```ts
interface Product { interface Product {
each sub of interface is equal to creation of type // each sub of interface is equal to creation of type
name: string, name: string,
Question mark(?) mean it optional , // Question mark(?) mean it optional ,
when create product , no need implement "qty" // when create product , no need implement "qty"
qty?: number, qty?: number,
it can be interface // it can be interface
creator: User, creator: User,
or it can be type // or it can be type
color?: Color color?: Color
or it can be direct declare like interface // or it can be direct declare like interface
price?: { currency: string , value: number }, price?: { currency: string , value: number },
or direct declare like type // or direct declare like type
level?: 1 | 2 | 3, level?: 1 | 2 | 3,
or Array // or Array
details: Array<string> details: Array<string>
or Enum // or Enum
productType: PRODUCT_TYPE productType: PRODUCT_TYPE
} }
``` ```