Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(app): Invalid links to a class when the class name includes an in…
…terface name fix #1239
- Loading branch information
1 parent
a5bee44
commit 047cedb
Showing
6 changed files
with
74 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
export interface IApiSourceResult<T> { | ||
source: string; | ||
data: T | undefined; | ||
score: number; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,26 @@ | ||
export * from './app.module'; | ||
|
||
interface Aa {} | ||
|
||
// The prefix of class name matches the interface name | ||
class AaBb {} | ||
// ^^ | ||
|
||
// The intermediate of class name matches the interface name | ||
class BbAaCc {} | ||
// ^^ | ||
|
||
// The suffix of class name matches the interface name | ||
class CcAa {} | ||
// ^^ | ||
|
||
class Container { | ||
// This type links to Aa interface, not AaBb class. | ||
a: AaBb; | ||
|
||
// This type links to Aa interface, not BbAaCc class. | ||
b: BbAaCc; | ||
|
||
// This type links to Aa interface, not CcAa class. | ||
c: CcAa; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters