-
-
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
b7ce43a
commit 0e244ce
Showing
4 changed files
with
61 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
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,35 @@ | ||
/** | ||
* @file Type Tests - DocastNode | ||
* @module docast/types/tests/unit-d/DocastNode | ||
*/ | ||
|
||
import type { | ||
BlockTag, | ||
Comment, | ||
Description, | ||
InlineTag, | ||
TypeExpression | ||
} from '#src/nodes' | ||
import type TestSubject from '../docast-node' | ||
|
||
describe('unit-d:types/DocastNode', () => { | ||
it('should extract BlockTag', () => { | ||
expectTypeOf<TestSubject>().extract<BlockTag>().not.toBeNever() | ||
}) | ||
|
||
it('should extract Comment', () => { | ||
expectTypeOf<TestSubject>().extract<Comment>().not.toBeNever() | ||
}) | ||
|
||
it('should extract Description', () => { | ||
expectTypeOf<TestSubject>().extract<Description>().not.toBeNever() | ||
}) | ||
|
||
it('should extract InlineTag', () => { | ||
expectTypeOf<TestSubject>().extract<InlineTag>().not.toBeNever() | ||
}) | ||
|
||
it('should extract TypeExpression', () => { | ||
expectTypeOf<TestSubject>().extract<TypeExpression>().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,19 @@ | ||
/** | ||
* @file Type Definitions - DocastNode | ||
* @module docast/types/DocastNode | ||
*/ | ||
|
||
import type { | ||
BlockTag, | ||
Comment, | ||
Description, | ||
InlineTag, | ||
TypeExpression | ||
} from '#src/nodes' | ||
|
||
/** | ||
* A native docast node. | ||
*/ | ||
type DocastNode = BlockTag | Comment | Description | InlineTag | TypeExpression | ||
|
||
export type { DocastNode 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 DocastNode } from './docast-node' |