-
-
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
a566375
commit ffd3e52
Showing
5 changed files
with
49 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ | |
* @module pkg-types | ||
*/ | ||
|
||
export {} | ||
export * from './types' |
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,20 @@ | ||
/** | ||
* @file Unit Tests - TypesVersions | ||
* @module pkg-types/types/tests/TypesVersions | ||
*/ | ||
|
||
import type TestSubject from '../types-versions' | ||
|
||
describe('unit:types/TypesVersions', () => { | ||
it('should allow empty object', () => { | ||
assertType<TestSubject>({}) | ||
}) | ||
|
||
it('should allow object with version mappings', () => { | ||
assertType<TestSubject>({ | ||
'>=4.0': { '*': ['ts4.0/*'] }, | ||
'>=3.2': { '*': ['ts3.2/*'] }, | ||
'>=3.1': { '*': ['ts3.1/*'] } | ||
}) | ||
}) | ||
}) |
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 @@ | ||
/** | ||
* @file Entry Point - Type Definitions | ||
* @module tsconfig-types/types | ||
*/ | ||
|
||
export type { default as TypesVersions } from './types-versions' |
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 Type Definitions - TypesVersions | ||
* @module pkg-types/types/TypesVersions | ||
*/ | ||
|
||
/** | ||
* TypeScript version selection map. | ||
* | ||
* @see https://www.typescriptlang.org/docs/handbook/declaration-files/publishing.html#version-selection-with-typesversions | ||
*/ | ||
type TypesVersions = Partial<Record<string, Partial<Record<string, string[]>>>> | ||
|
||
export type { TypesVersions as default } |