-
-
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.
Signed-off-by: Lexus Drumgold <[email protected]>
- Loading branch information
1 parent
1382bdd
commit 04d1fdb
Showing
8 changed files
with
51 additions
and
45 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 |
---|---|---|
|
@@ -13,6 +13,7 @@ gpgsign | |
graphqlrc | ||
hmarr | ||
iife | ||
jsxdev | ||
keyid | ||
larsgw | ||
lcov | ||
|
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 tsconfig-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,28 @@ | ||
/** | ||
* @file Unit Tests - Jsx | ||
* @module tsconfig-types/types/tests/Jsx | ||
*/ | ||
|
||
import type TestSubject from '../jsx' | ||
|
||
describe('unit:types/Jsx', () => { | ||
it('should allow "preserve"', () => { | ||
assertType<TestSubject>('preserve') | ||
}) | ||
|
||
it('should allow "react-jsx"', () => { | ||
assertType<TestSubject>('react-jsx') | ||
}) | ||
|
||
it('should allow "react-jsxdev"', () => { | ||
assertType<TestSubject>('react-jsxdev') | ||
}) | ||
|
||
it('should allow "react-native"', () => { | ||
assertType<TestSubject>('react-native') | ||
}) | ||
|
||
it('should allow "react"', () => { | ||
assertType<TestSubject>('react') | ||
}) | ||
}) |
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 Jsx } from './jsx' |
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 - Jsx | ||
* @module tsconfig-types/types/Jsx | ||
*/ | ||
|
||
/** | ||
* Controls how JSX constructs are emitted in JavaScript files. | ||
* | ||
* @see https://www.typescriptlang.org/tsconfig#jsx | ||
*/ | ||
type Jsx = 'preserve' | 'react-jsx' | 'react-jsxdev' | 'react-native' | 'react' | ||
|
||
export type { Jsx 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
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