Replies: 1 comment
-
Until a solution is provided for this in the if (someVar == null) {
unreachable();
}
return someOtherVar; |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Problem
According to the docs for the Logging API,
log.critical
terminates the subgraph:The trouble is that when I am using
log.critical,
the TypeScript compiler isn't able to infer thatlog.critical
will terminate the execution of the function. Example:Getting this type error:
Solution
Improve the developer experience when using
log.critical
that lets the TypeScript compiler infer that the program execution will stop.Beta Was this translation helpful? Give feedback.
All reactions