-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathtypes.js
31 lines (29 loc) · 1 KB
/
types.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/**
* @typedef {import('css-selector-parser').AstSelector} AstSelector
* @typedef {import('unist').Node} Node
*/
/**
* @typedef SelectState
* Current state.
* @property {AstSelector} rootQuery
* Original root selectors.
* @property {Array<Node>} results
* Matches.
* @property {Array<Node>} scopeNodes
* Nodes in scope.
* @property {boolean} one
* Whether we can stop looking after we found one node.
* @property {boolean} shallow
* Whether we only allow selectors without nesting.
* @property {boolean} found
* Whether we found at least one match.
* @property {number | undefined} typeIndex
* Track siblings: this current node has `n` nodes with its type before it.
* @property {number | undefined} nodeIndex
* Track siblings: this current node has `n` nodes before it.
* @property {number | undefined} typeCount
* Track siblings: there are `n` siblings with this node’s type.
* @property {number | undefined} nodeCount
* Track siblings: there are `n` siblings.
*/
export {}