Commit 12df298
fix: remove
## PR Checklist
- [x] Addresses an existing open issue: fixes #528
- [x] That issue was marked as [`status: accepting
prs`](https://github.com/JoshuaKGoldberg/ts-api-utils/issues?q=is%3Aopen+is%3Aissue+label%3A%22status%3A+accepting+prs%22)
- [x] Steps in
[CONTRIBUTING.md](https://github.com/JoshuaKGoldberg/ts-api-utils/blob/main/.github/CONTRIBUTING.md)
were taken
## Overview
Ostensibly, this is the code change, but it looks pretty intentional
that it was written this way in the first place, so.... maybe needs some
more investigation in order to understand why it was written this way.
<s>I'm not really sure how to test for this, either. I've written a test
that proves the bug's existence, but wouldn't prevent it from
regressing. Open to suggestions 🤔</s> I've written a test that proves
the bug's existence at runtime, _and_ will cause a type-checking error
if the `value` field is added back, due to its use of `@ts-expect-error`
---------
Co-authored-by: Rebecca Stevens <rebecca.stevens@outlook.co.nz>.value field from type declarations for boolean literal types (#535)1 parent a9fcaa7 commit 12df298
2 files changed
Lines changed: 28 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
| 8 | + | |
7 | 9 | | |
8 | 10 | | |
9 | 11 | | |
| |||
40 | 42 | | |
41 | 43 | | |
42 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | | - | |
14 | 13 | | |
15 | 14 | | |
16 | 15 | | |
| |||
55 | 54 | | |
56 | 55 | | |
57 | 56 | | |
58 | | - | |
59 | 57 | | |
60 | 58 | | |
61 | 59 | | |
| |||
150 | 148 | | |
151 | 149 | | |
152 | 150 | | |
153 | | - | |
154 | 151 | | |
155 | 152 | | |
156 | 153 | | |
| |||
171 | 168 | | |
172 | 169 | | |
173 | 170 | | |
| 171 | + | |
174 | 172 | | |
175 | 173 | | |
176 | 174 | | |
177 | | - | |
| 175 | + | |
178 | 176 | | |
179 | 177 | | |
180 | 178 | | |
181 | 179 | | |
| 180 | + | |
182 | 181 | | |
183 | 182 | | |
184 | 183 | | |
| |||
191 | 190 | | |
192 | 191 | | |
193 | 192 | | |
| 193 | + | |
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
0 commit comments