Skip to content

[Errors] Exported type whose functions return non-exported type #56

@mhegazy

Description

@mhegazy
interface Foo {
    x: number;
}

export class Bar {
    f(): Foo { return null; }
}

Expected: Return type of public method from exported class has or is using private type 'Foo'.

Actual: no error

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptFixedA PR has been merged for this issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions