16 lines
513 B
Plaintext
16 lines
513 B
Plaintext
==== tests/cases/compiler/consumer.ts (1 errors) ====
|
|
import e = require('./exporter');
|
|
|
|
export function w(): e.w { // Should be OK
|
|
~
|
|
!!! Return type of exported function has or is using private name 'Widget1'.
|
|
return {name: 'value' };
|
|
}
|
|
==== tests/cases/compiler/w1.ts (0 errors) ====
|
|
|
|
export = Widget1
|
|
interface Widget1 { name: string; }
|
|
|
|
==== tests/cases/compiler/exporter.ts (0 errors) ====
|
|
export import w = require('./w1');
|
|
|