We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 77b25d4 commit a3cbd8dCopy full SHA for a3cbd8d
draft/object-types.md
@@ -563,12 +563,16 @@ It produces this AST
563
Two way type checking:
564
565
1. going from the value and checking the type definition
566
+ easier to find if the object literal has attributes that are not in the type definition
567
2. going from the type definition and checking the value properties
568
+ easier to find what's missing in the object literal to match the type definition
569
570
Check phases
571
572
1. Any property type mismatch should generate this error
573
574
+- If they don't share the same type. e.g. `number` and `object`
575
+
576
```
577
Type {X} is not assignable to {Y}
578
0 commit comments