-
-
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 <unicornware@flexdevelopment.llc>
- Loading branch information
1 parent
c60f6b1
commit f28274d
Showing
5 changed files
with
61 additions
and
11 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 |
---|---|---|
|
@@ -6,3 +6,4 @@ | |
export * from './enums' | ||
export * from './interfaces' | ||
export * from './nodes' | ||
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
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,30 @@ | ||
/** | ||
* @file Type Tests - Child | ||
* @module docast/types/tests/unit-d/Child | ||
*/ | ||
|
||
import type { | ||
BlockTag, | ||
Comment, | ||
ImplicitDescription, | ||
InlineTag | ||
} from '#src/nodes' | ||
import type TestSubject from '../child' | ||
|
||
describe('unit-d:types/Child', () => { | ||
it('should extract BlockTag', () => { | ||
expectTypeOf<TestSubject>().extract<BlockTag>().not.toBeNever() | ||
}) | ||
|
||
it('should extract Comment', () => { | ||
expectTypeOf<TestSubject>().extract<Comment>().not.toBeNever() | ||
}) | ||
|
||
it('should extract ImplicitDescription', () => { | ||
expectTypeOf<TestSubject>().extract<ImplicitDescription>().not.toBeNever() | ||
}) | ||
|
||
it('should extract InlineTag', () => { | ||
expectTypeOf<TestSubject>().extract<InlineTag>().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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/** | ||
* @file Type Definitions - Child | ||
* @module docast/types/Child | ||
*/ | ||
|
||
import type { | ||
BlockTag, | ||
Comment, | ||
ImplicitDescription, | ||
InlineTag | ||
} from '#src/nodes' | ||
|
||
/** | ||
* [*Child*][1] node types. | ||
* | ||
* [1]: https://github.com/syntax-tree/unist#child | ||
*/ | ||
type Child = BlockTag | Comment | ImplicitDescription | InlineTag | ||
|
||
export type { Child 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/** | ||
* @file Entry Point - Type Definitions | ||
* @module docast/types | ||
*/ | ||
|
||
export type { default as Child } from './child' |