Commit a6642d6
committed
JSDoc understands string literal types
Unfortunately, I didn't find a way to reuse the normal string literal
type, so I had to extend the existing JSDoc type hierarchy. Otherwise,
this feature is very simple.1 parent c578367 commit a6642d6Copy full SHA for a6642d6
7 files changed
+69-1Lines changed: 69 additions & 1 deletion
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- src/compiler
- tests
- baselines/reference
- cases/conformance/jsdoc
Expand file treeCollapse file tree
Open diff view settings
Collapse file
+2Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
5326 | 5326 | |
5327 | 5327 | |
5328 | 5328 | |
| 5329 | + |
| 5330 | + |
5329 | 5331 | |
5330 | 5332 | |
5331 | 5333 | |
|
Collapse file
+8-1Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
5860 | 5860 | |
5861 | 5861 | |
5862 | 5862 | |
| 5863 | + |
| 5864 | + |
5863 | 5865 | |
5864 | 5866 | |
5865 | | - |
5866 | 5867 | |
5867 | 5868 | |
5868 | 5869 | |
| ||
6041 | 6042 | |
6042 | 6043 | |
6043 | 6044 | |
| 6045 | + |
| 6046 | + |
| 6047 | + |
| 6048 | + |
| 6049 | + |
| 6050 | + |
6044 | 6051 | |
6045 | 6052 | |
6046 | 6053 | |
|
Collapse file
+5Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
346 | 346 | |
347 | 347 | |
348 | 348 | |
| 349 | + |
349 | 350 | |
350 | 351 | |
351 | 352 | |
| ||
1491 | 1492 | |
1492 | 1493 | |
1493 | 1494 | |
| 1495 | + |
| 1496 | + |
| 1497 | + |
| 1498 | + |
1494 | 1499 | |
1495 | 1500 | |
1496 | 1501 | |
|
Collapse file
tests/baselines/reference/jsdocStringLiteral.js
Copy file name to clipboard+16Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
Collapse file
tests/baselines/reference/jsdocStringLiteral.symbols
Copy file name to clipboard+12Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
Collapse file
tests/baselines/reference/jsdocStringLiteral.types
Copy file name to clipboard+14Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
Collapse file
tests/cases/conformance/jsdoc/jsdocStringLiteral.ts
Copy file name to clipboard+12Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
0 commit comments