Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.8k
Closed
Description
I'm working on convertingeslint-plugin-jest
to typescript, and have come across a type definition that I can't reproduce at runtime.
While convertingno-test-callbacks
, I found out that it's apparently possible for thebody
of aFunctionDeclaration
to benull
.
This has required me toadd a null check in order to please typescript.
This in turn upsets our coverage b/c that branch is never tested, leading me here as I've not been able to write any code that reproduces the defined type.
Hence: how can I have aFunctionDeclaration
w/ abody
ofnull
at runtime?
I suspect this heavily relates to#420, but theres too many moving parts for me to properly track :)