```==================== .D.TS ====================

// Correct
declare function generatorGood(): Generator<number>;
declare class GeneratorClassGood {
    method(): Generator<number>;
}
// Need to explicit return type for async functions
// Incorrect
declare function generatorBad();
declare class GeneratorClassBad {
    method();
}


==================== Errors ====================
  x TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
    ,-[$DIR/tests/oxc_fixture/generator.ts:15:1]
 14 | // Incorrect
 15 | function *generatorBad() {
    :           ^^^^^^^^^^^^
 16 |   yield 50;
    `----
  x TS9008: Method must have an explicit return type annotation with --isolatedDeclarations.
    ,-[$DIR/tests/oxc_fixture/generator.ts:21:1]
 20 | class GeneratorClassBad {
 21 |   *method() {
    :    ^^^^^^
 22 |     yield 50;
    `----


```
