Skip to content

Private types export check gets thrown off by mutually recursive types that are exported separately #14753

@rkirov

Description

@rkirov

TypeScript Version: 2.2.1
Code

interface A {
  b: B
}

interface B {
  a: A
}
export {A, B}

Expected behavior:
No errors, all interfaces are exported.

Actual behavior:
f.ts(7,6): error TS4033: Property 'b' of exported interface has or is using private name 'B'.

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptDomain: Declaration EmitThe issue relates to the emission of d.ts filesFixedA PR has been merged for this issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions