Commit a7f85e6
committed
refactor(recipes): declare KnownEditor as a literal union
Write KnownEditor directly as a union of editor-command literals
instead of deriving it via (typeof KNOWN_EDITORS)[number] — the
tsnapi snapshot now prints the actual union instead of the indexed
access expression. KNOWN_EDITORS is now typed against KnownEditor
(as const satisfies readonly KnownEditor[]) to keep the two in sync.1 parent e153305 commit a7f85e6
2 files changed
Lines changed: 38 additions & 6 deletions
File tree
- packages/devframe/src/recipes
- tests/__snapshots__/tsnapi/devframe/recipes
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
11 | 46 | | |
12 | 47 | | |
13 | 48 | | |
| |||
41 | 76 | | |
42 | 77 | | |
43 | 78 | | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
| 79 | + | |
48 | 80 | | |
49 | 81 | | |
50 | 82 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
0 commit comments