-
Notifications
You must be signed in to change notification settings - Fork 795
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f5d5165
commit 175c5a1
Showing
4 changed files
with
72 additions
and
12 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,18 +1,36 @@ | ||
/** | ||
* Interface that should be included | ||
*/ | ||
export interface Pie { | ||
type: 'pumpkin' | 'apple' | 'pecan'; | ||
name: string; | ||
diameter: number; | ||
} | ||
|
||
/** | ||
* Type that should be included | ||
* | ||
*/ | ||
export type FooBar = { | ||
biz: string; | ||
}; | ||
|
||
/** | ||
* Enum that should be included | ||
*/ | ||
export enum FizzBuzz { | ||
One, | ||
Two, | ||
Three, | ||
} | ||
|
||
export type { NotUsedInterface as BestInterface } from './test-not-used'; | ||
// re-export w/ alias and `export type`, should be under original name in `docs.json` | ||
export type { ReExportedUnderNewNameWithType as BestInterface } from './test-not-used'; | ||
// re-export w/ alias, should be under original name in `docs.json` | ||
export { ReExportedUnderNewName as BetterInterface } from './test-not-used'; | ||
// re-export w/ `export type` | ||
export type { ReExportedWithType } from './test-not-used'; | ||
// re-export | ||
export { ReExported } from './test-not-used'; | ||
|
||
export * from './test-not-used'; |
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,7 +1,34 @@ | ||
export interface NotUsedInterface { | ||
/** | ||
* If I show up then a re-export w/ alias and `export type` works! | ||
*/ | ||
export interface ReExportedUnderNewNameWithType { | ||
test: string; | ||
} | ||
|
||
export interface AnotherInterface { | ||
/** | ||
* If I show up then a re-export w/ alias works! | ||
*/ | ||
export interface ReExportedUnderNewName { | ||
test: string; | ||
} | ||
|
||
/** | ||
* If I show up then a re-export works! | ||
*/ | ||
export interface ReExported { | ||
test: string; | ||
} | ||
|
||
/** | ||
* If I show up then a re-export w/ `export type` works! | ||
*/ | ||
export interface ReExportedWithType { | ||
test: string; | ||
} | ||
|
||
/** | ||
* If I show up then a `export * from '...'` works! | ||
*/ | ||
export interface IncludedInWildcard { | ||
test: string; | ||
} |