forked from timocov/dts-bundle-generator
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
6 changed files
with
44 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import { TestCaseConfig } from '../test-case-config'; | ||
|
||
const config: TestCaseConfig = { | ||
}; | ||
|
||
export = config; |
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 @@ | ||
const hidden = 0 as const; | ||
|
||
interface Hidden { | ||
type?: typeof hidden; | ||
} | ||
|
||
export default function test(value: Hidden): typeof hidden{ | ||
return value?.type ?? hidden; | ||
}; |
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 @@ | ||
const hidden = '' as const; | ||
|
||
interface Hidden { | ||
type?: typeof hidden; | ||
} | ||
|
||
export default function (value: Hidden): typeof hidden { | ||
return value.type ?? hidden; | ||
}; |
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 @@ | ||
require('../run-test-case').runTestCase(__dirname); |
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,2 @@ | ||
export { default as F1 } from './hidden1'; | ||
export { default as F2 } from './hidden2'; |
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,17 @@ | ||
declare const hidden: 0; | ||
export interface Hidden { | ||
type?: typeof hidden; | ||
} | ||
declare function test(value: Hidden): typeof hidden; | ||
declare const hidden$1: ""; | ||
interface Hidden$1 { | ||
type?: typeof hidden$1; | ||
} | ||
declare function _default(value: Hidden$1): typeof hidden$1; | ||
|
||
export { | ||
_default as F2, | ||
test as F1, | ||
}; | ||
|
||
export {}; |