Replies: 1 comment 1 reply
-
| Why has this discussion been closed? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
-
| Why has this discussion been closed? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Problem
According to the docs for the Logging API,
log.criticalterminates the subgraph:The trouble is that when I am using
log.critical,the TypeScript compiler isn't able to infer thatlog.criticalwill terminate the execution of the function. Example:Getting this type error:
Solution
Improve the developer experience when using
log.criticalthat lets the TypeScript compiler infer that the program execution will stop.Beta Was this translation helpful? Give feedback.
All reactions