-
-
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
6e5d411
commit d92dd68
Showing
3 changed files
with
27 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,12 @@ | ||
/** | ||
* @file Type Tests - Index | ||
* @module unist-util-types/tests/unit-d/Index | ||
*/ | ||
|
||
import type TestSubject from '../index-number' | ||
|
||
describe('unit-d:Index', () => { | ||
it('should equal number', () => { | ||
expectTypeOf<TestSubject>().toEqualTypeOf<number>() | ||
}) | ||
}) |
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,14 @@ | ||
/** | ||
* @file Index | ||
* @module unist-util-types/Index | ||
*/ | ||
|
||
/** | ||
* Number of preceding [*siblings*][1] of a [*child*][2] node. | ||
* | ||
* [1]: https://github.com/syntax-tree/unist#sibling | ||
* [2]: https://github.com/syntax-tree/unist#child | ||
*/ | ||
type Index = number | ||
|
||
export type { Index 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