@types/css-selector-tokenizer
- Version 0.7.4
- Published
- 5.81 kB
- No dependencies
- MIT license
Install
npm i @types/css-selector-tokenizer
yarn add @types/css-selector-tokenizer
pnpm add @types/css-selector-tokenizer
Overview
TypeScript definitions for css-selector-tokenizer
Index
Functions
Interfaces
Type Aliases
Functions
function parse
parse: (selectors: string) => SelectorsNode;
function parseValues
parseValues: (values: string) => ValuesNode;
function stringify
stringify: (node: SelectorsNode) => string;
function stringifyValues
stringifyValues: (node: ValuesNode) => string;
Interfaces
interface AttributeNode
interface AttributeNode extends BaseNode {}
interface BaseNode
interface BaseNode {}
interface ClassNode
interface ClassNode extends BaseNode {}
interface CommentNode
interface CommentNode extends BaseNode {}
interface ElementNode
interface ElementNode extends BaseNode {}
interface IdNode
interface IdNode extends BaseNode {}
interface InvalidNode
interface InvalidNode extends BaseNode {}
interface ItemNode
interface ItemNode extends BaseNode {}
interface NestedItemNode
interface NestedItemNode extends BaseNode {}
interface NestedPseudoClassNode
interface NestedPseudoClassNode extends BaseNode {}
interface OperatorNode
interface OperatorNode extends BaseNode {}
interface PseudoClassNode
interface PseudoClassNode extends BaseNode {}
interface PseudoElementNode
interface PseudoElementNode extends BaseNode {}
interface SelectorNode
interface SelectorNode extends BaseNode {}
interface SelectorsNode
interface SelectorsNode extends BaseNode {}
interface SpacingNode
interface SpacingNode extends BaseNode {}
interface StringNode
interface StringNode extends BaseNode {}
interface UniversalNode
interface UniversalNode extends BaseNode {}
interface UrlNode
interface UrlNode extends BaseNode {}
property innerSpacingAfter
innerSpacingAfter?: string | undefined;
property innerSpacingBefore
innerSpacingBefore?: string | undefined;
property stringType
stringType?: string | undefined;
property type
type: 'url';
property url
url: string;
interface ValueNode
interface ValueNode extends BaseNode {}
interface ValuesNode
interface ValuesNode extends BaseNode {}
Type Aliases
type AnySelectorNode
type AnySelectorNode = SelectorsNode | SelectorNode | SelectorNodeType;
Any node returned by
parse
. Useful forwalk
implementations.
type AnyValueNode
type AnyValueNode = ValuesNode | ValueNode | ValueNodeType;
Any node returned by
parseValues
. Useful forwalk
implementations.
type SelectorNodeType
type SelectorNodeType = | ElementNode | ClassNode | SpacingNode | IdNode | PseudoClassNode | NestedPseudoClassNode | UniversalNode | AttributeNode | CommentNode | OperatorNode | InvalidNode | PseudoElementNode;
Any node that can be child of
SelectorNode
.
type ValueNodeType
type ValueNodeType = | ItemNode | NestedItemNode | StringNode | CommentNode | UrlNode | InvalidNode;
Any node that can be child of
ValueNode
.
Package Files (1)
Dependencies (0)
No dependencies.
Dev Dependencies (0)
No dev dependencies.
Peer Dependencies (0)
No peer dependencies.
Badge
To add a badge like this oneto your package's README, use the codes available below.
You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@types/css-selector-tokenizer
.
- Markdown[![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@types/css-selector-tokenizer)
- HTML<a href="https://www.jsdocs.io/package/@types/css-selector-tokenizer"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>
- Updated .
Package analyzed in 2739 ms. - Missing or incorrect documentation? Open an issue for this package.