Commit 281f49d
committed
work with exactOptionalPropertyTypes
Need to use the FC type that is passed in (which can extend *either*
`void` *or* `undefined`, because those are OBVIOUSLY TWO COMPLETELY
DIFFERENT THINGS, according to TSC in its infinite wisdom, and this is
totally not something I'm needlessly and constantly salty about) rather
than setting it to `undefined` optionally, because heaven forbid someone
passes `void` in there, you might treat it as `undefined` instead of
`void`, which would be so unsafe and bad.
Anyway. Probably a completely normal amount of feelings to have about a
programming language wart, right?
fix: #4061 parent 0adc7a5 commit 281f49d
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
503 | 503 | | |
504 | 504 | | |
505 | 505 | | |
506 | | - | |
| 506 | + | |
507 | 507 | | |
508 | 508 | | |
509 | 509 | | |
| |||
556 | 556 | | |
557 | 557 | | |
558 | 558 | | |
559 | | - | |
| 559 | + | |
560 | 560 | | |
561 | 561 | | |
562 | 562 | | |
| |||
0 commit comments