Message<T>: T extends Task<any, any, any>
    ? CompileError<"You must 'yield * fn()' to delegate task instead of 'yield fn()' which yields generator instead">
    : T extends ((...args) => Generator)
        ? CompileError<"You must yield invoked generator as in 'yield * fn()' instead of yielding generator function">
        : T

Helper type to guard users against easy to make mistakes.

Type Parameters

  • T

Generated using TypeDoc