-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Lexus Drumgold <[email protected]>
- Loading branch information
1 parent
0c70854
commit b54dbbb
Showing
6 changed files
with
41 additions
and
10 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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/** | ||
* @file Unit Tests - ExportsSubpath | ||
* @module pkg-types/tests/unit-d/ExportsSubpath | ||
*/ | ||
|
||
import type TestSubject from '../exports-subpath' | ||
|
||
describe('unit-d:ExportsSubpath', () => { | ||
it('should extract "."', () => { | ||
expectTypeOf<TestSubject>().extract<'.'>().not.toBeNever() | ||
}) | ||
|
||
it('should extract `./${string}`', () => { | ||
expectTypeOf<TestSubject>().extract<`./${string}`>().not.toBeNever() | ||
}) | ||
}) |
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,13 @@ | ||
/** | ||
* @file ExportsSubpath | ||
* @module pkg-types/ExportsSubpath | ||
*/ | ||
|
||
/** | ||
* A subpath `exports` object key. | ||
* | ||
* @see https://nodejs.org/api/packages.html#subpath-exports | ||
*/ | ||
type ExportsSubpath = '.' | `./${string}` | ||
|
||
export type { ExportsSubpath as default } |
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