File tree Expand file tree Collapse file tree 3 files changed +29
-0
lines changed
Expand file tree Collapse file tree 3 files changed +29
-0
lines changed Original file line number Diff line number Diff line change 1+ /**
2+ * @file Type Tests - AnyNode
3+ * @module fst/types/tests/unit-d/AnyNode
4+ */
5+
6+ import type TestSubject from '#types/any-node'
7+ import type { Root } from '@flex-development/fst'
8+ import type { InclusiveDescendant } from '@flex-development/unist-util-types'
9+
10+ describe ( 'unit-d:types/AnyNode' , ( ) => {
11+ it ( 'should equal InclusiveDescendant<Root>' , ( ) => {
12+ expectTypeOf < TestSubject > ( ) . toEqualTypeOf < InclusiveDescendant < Root > > ( )
13+ } )
14+ } )
Original file line number Diff line number Diff line change 1+ /**
2+ * @file Type Aliases - AnyNode
3+ * @module fst/types/AnyNode
4+ */
5+
6+ import type { Root } from '@flex-development/fst'
7+ import type { InclusiveDescendant } from '@flex-development/unist-util-types'
8+
9+ /**
10+ * Union of nodes that can occur in fst.
11+ */
12+ type AnyNode = InclusiveDescendant < Root >
13+
14+ export type { AnyNode as default }
Original file line number Diff line number Diff line change 33 * @module fst/types
44 */
55
6+ export type { default as AnyNode } from '#types/any-node'
67export type { default as AnyParent } from '#types/any-parent'
78export type { default as Child } from '#types/child'
You can’t perform that action at this time.
0 commit comments