• Is the given function a native generator function?

    Type Parameters

    • G extends Generator<any, any, any> = Generator<unknown, any, unknown>

    Parameters

    • fn: any

    Returns fn is ((this: any, ...args: any[]) => G)