Skip to content

[Errors] Exported type whose functions use parameters of non-exported type #55

Closed
@mhegazy

Description

@mhegazy
interface Foo {
    x: number;
}

export class Bar {
    f(x: Foo) { }

}

Expected: Parameter 'x' 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