Modules | @vltpkg/query
Classes
Query
Constructors
new Query()
Parameters
• __namedParameters: QueryOptions
Returns
Defined in
index.ts:117
Methods
search()
Parameters
• query: string
Returns
Promise
<QueryResponse
>
Defined in
index.ts:122
Type Aliases
GraphSelectionState
Type declaration
edges
nodes
Defined in
types.ts:34
ParserFn()
Parameters
• opt: ParserState
Returns
Promise
<ParserState
>
Defined in
types.ts:56
ParserState
Type declaration
collect
current
initial
loose?
next?
partial
prev?
result?
walk
Defined in
types.ts:39
PostcssNode
Defined in
types.ts:18
PostcssNodeWithChildren
Defined in
types.ts:32
QueryOptions
Type declaration
graph
Defined in
index.ts:109
QueryResponse
Type declaration
edges
nodes
Defined in
types.ts:51
Functions
asAttributeNode()
Parameters
• node?: PostcssNode
Returns
Attribute
Defined in
types.ts:84
asClassNode()
Parameters
• node?: PostcssNode
Returns
ClassName
Defined in
types.ts:101
asCombinatorNode()
Parameters
• node?: PostcssNode
Returns
Combinator
Defined in
types.ts:118
asIdentifierNode()
Parameters
• node?: PostcssNode
Returns
Identifier
Defined in
types.ts:135
asPostcssNodeWithChildren()
Parameters
• node?: PostcssNode
Returns
Defined in
types.ts:63
asPseudoNode()
Parameters
• node?: PostcssNode
Returns
Pseudo
Defined in
types.ts:155
asTagNode()
Parameters
• node?: PostcssNode
Returns
Tag
Defined in
types.ts:172
isAttributeNode()
Parameters
• node: unknown
Returns
node is Attribute
Defined in
types.ts:81
isClassNode()
Parameters
• node: unknown
Returns
node is ClassName
Defined in
types.ts:98
isCombinatorNode()
Parameters
• node: unknown
Returns
node is Combinator
Defined in
types.ts:115
isIdentifierNode()
Parameters
• node: any
Returns
node is Identifier
Defined in
types.ts:132
isPostcssNodeWithChildren()
Parameters
• node: any
Returns
node is PostcssNodeWithChildren
Defined in
types.ts:58
isPseudoNode()
Parameters
• node: unknown
Returns
node is Pseudo
Defined in
types.ts:152
isSelectorNode()
Parameters
• node: any
Returns
node is Selector
Defined in
types.ts:149
isTagNode()
Parameters
• node: unknown
Returns
node is Tag
Defined in
types.ts:169
walk()
Parameters
• state: ParserState
Returns
Promise
<ParserState
>
Defined in
index.ts:56