Commit 391f9ff
authored
Strict optional properties (microsoft#43947)
* Introduce --strictOptionalProperties compiler switch
* Accept new baselines
* Removing missingType when printing back optional properties
* Accept new baselines
* Fix linting issue
* Use getNonMissingTypeOfSymbol in getTypeOfSymbolAtLocation
* Properly elaborate errors involving optional properties
* Accept new baselines
* Properly check optional properties in tuple types
* Accept new baselines
* Add missing tuple type check
* More permissive check of strict optional properties and index signatures
* Add tests
* Fix lint issues
* Accept new baselines1 parent b603a04 commit 391f9ff
File tree
90 files changed
+2965
-787
lines changed- src/compiler
- tests
- baselines/reference
- api
- showConfig/Shows tsconfig for single option/strictOptionalProperties
- tsConfig
- Default initialized TSConfig
- Initialized TSConfig with advanced options
- Initialized TSConfig with boolean value compiler options
- Initialized TSConfig with enum value compiler options
- Initialized TSConfig with files options
- Initialized TSConfig with incorrect compiler option value
- Initialized TSConfig with incorrect compiler option
- Initialized TSConfig with list compiler options with enum value
- Initialized TSConfig with list compiler options
- tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit
- tsc/runWithoutArgs/initial-build
- cases/compiler
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
90 files changed
+2965
-787
lines changedLarge diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
612 | 612 | | |
613 | 613 | | |
614 | 614 | | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
615 | 624 | | |
616 | 625 | | |
617 | 626 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4877 | 4877 | | |
4878 | 4878 | | |
4879 | 4879 | | |
| 4880 | + | |
| 4881 | + | |
| 4882 | + | |
| 4883 | + | |
4880 | 4884 | | |
4881 | 4885 | | |
4882 | 4886 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3043 | 3043 | | |
3044 | 3044 | | |
3045 | 3045 | | |
| 3046 | + | |
| 3047 | + | |
| 3048 | + | |
3046 | 3049 | | |
3047 | 3050 | | |
3048 | 3051 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6041 | 6041 | | |
6042 | 6042 | | |
6043 | 6043 | | |
| 6044 | + | |
6044 | 6045 | | |
6045 | 6046 | | |
6046 | 6047 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6086 | 6086 | | |
6087 | 6087 | | |
6088 | 6088 | | |
| 6089 | + | |
6089 | 6090 | | |
6090 | 6091 | | |
6091 | 6092 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2913 | 2913 | | |
2914 | 2914 | | |
2915 | 2915 | | |
| 2916 | + | |
2916 | 2917 | | |
2917 | 2918 | | |
2918 | 2919 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2913 | 2913 | | |
2914 | 2914 | | |
2915 | 2915 | | |
| 2916 | + | |
2916 | 2917 | | |
2917 | 2918 | | |
2918 | 2919 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
0 commit comments