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
c956ac9
commit 2065353
Showing
7 changed files
with
50 additions
and
16 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
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
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,17 @@ | ||
/** | ||
* @file Type Tests - Transform | ||
* @module docast-util-from-docs/types/tests/unit-d/Transform | ||
*/ | ||
|
||
import type { Root } from '@flex-development/docast' | ||
import type TestSubject from '../transform' | ||
|
||
describe('unit-d:types/Transform', () => { | ||
it('should be callable with [Root]', () => { | ||
expectTypeOf<TestSubject>().parameters.toEqualTypeOf<[Root]>() | ||
}) | ||
|
||
it('should return void', () => { | ||
expectTypeOf<TestSubject>().returns.toBeVoid() | ||
}) | ||
}) |
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,20 @@ | ||
/** | ||
* @file Type Definitions - Transform | ||
* @module docast-util-from-docs/types/Transform | ||
*/ | ||
|
||
import type { Root } from '@flex-development/docast' | ||
|
||
/** | ||
* Transform the docblock syntax `tree`. | ||
* | ||
* @see {@linkcode Root} | ||
* | ||
* @this {void} | ||
* | ||
* @param {Root} tree - docast tree | ||
* @return {void} Nothing | ||
*/ | ||
type Transform = (this: void, tree: Root) => void | ||
|
||
export type { Transform as default } |