Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(app): interfaces multiple extends support
fix #1364
- Loading branch information
1 parent
51fe4b9
commit 229f407
Showing
15 changed files
with
155 additions
and
36 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
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
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
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/** | ||
* A boo interface just for documentation purpose | ||
*/ | ||
export interface BooInterface { | ||
/** | ||
* The boo | ||
*/ | ||
boo: string; | ||
} |
25 changes: 25 additions & 0 deletions
25
test/fixtures/sample-files-extends/src/app/clock.interface.ts
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { BooInterface } from './boo.interface'; | ||
import { TimeInterface } from './time.interface'; | ||
|
||
/** | ||
* A class interface just for documentation purpose | ||
* | ||
* ```typescript | ||
* class Clock implements ClockInterface { | ||
* currentTime: Date; | ||
* constructor(h: number, m: number) { } | ||
* } | ||
* ``` | ||
*/ | ||
interface ClockInterface extends TimeInterface, BooInterface { | ||
/** | ||
* The current time | ||
* @type {Date} | ||
* @deprecated The current time property is deprecated | ||
*/ | ||
currentTime: Date; | ||
/** | ||
* A simple reset method | ||
*/ | ||
reset(): void; | ||
} |
Oops, something went wrong.