forked from TypeStrong/typedoc-repros
/
index.ts
43 lines (33 loc) · 863 Bytes
/
index.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/**
* Some code reproducing a bug.
*/
declare namespace SameNameClassNamespace {
/**
* This causes an error even though it's relatively correct: {@link AnotherInterface}
*/
export interface AnInterface {
}
/**
* Some documentation
*/
export interface AnotherInterface {
}
}
/*
* The error goes away in three ways:
* - Comment out the below class
* - Comment out the below interface
* - Even stranger: Make this comment a TSDoc comment (add extra * to beggining of comment),
* which will apply to the class.
* - This may be a workable workaround
*/
declare class SameNameClassNamespace {
}
/**
* This interface is used to augment additional keys (from AnInterface) onto SameNameClassNamespace
*/
interface SameNameClassNamespace extends SameNameClassNamespace.AnInterface {
}
export {
SameNameClassNamespace
};