Closed
Description
I'm working on converting eslint-plugin-jest
to typescript, and have come across a type definition that I can't reproduce at runtime.
While converting no-test-callbacks
, I found out that it's apparently possible for the body
of a FunctionDeclaration
to be null
.
This has required me to add 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 a FunctionDeclaration
w/ a body
of null
at runtime?
I suspect this heavily relates to #420, but theres too many moving parts for me to properly track :)
Metadata
Metadata
Assignees
Labels
New feature or requestNew feature or requestIssues related to @typescript-eslint/parserIssues related to @typescript-eslint/parserIssues related to @typescript-eslint/typescript-estreeIssues related to @typescript-eslint/typescript-estree