Type alias ControlFlow<B, C>

ControlFlow<B, C>: Continue<C> | Break<B>

An utility type ControlFlow<B, C>, which tells an operation whether it should exit early or go on. It's more clear than boolean or Result to show your code flow control explicity.

Type Parameters

  • B

  • C = never[]

Generated using TypeDoc