-
-
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
6b08cbf
commit 94ce708
Showing
3 changed files
with
32 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,16 @@ | ||
/** | ||
* @file Unit Tests - Type | ||
* @module pkg-types/types/tests/Type | ||
*/ | ||
|
||
import type TestSubject from '../type' | ||
|
||
describe('unit:types/Type', () => { | ||
it('should allow "commonjs"', () => { | ||
assertType<TestSubject>('commonjs') | ||
}) | ||
|
||
it('should allow "module"', () => { | ||
assertType<TestSubject>('module') | ||
}) | ||
}) |
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,15 @@ | ||
/** | ||
* @file Type Definitions - Type | ||
* @module pkg-types/types/Type | ||
*/ | ||
|
||
/** | ||
* Module format used by Node.js for all `.js` files that have a `package.json` | ||
* file as their nearest parent. | ||
* | ||
* @see https://nodejs.org/api/packages.html#type | ||
* @see https://nodejs.org/api/esm.html#esm_package_json_type_field | ||
*/ | ||
type Type = 'commonjs' | 'module' | ||
|
||
export type { Type as default } |