css-what
Advanced tools
Comparing version 3.1.0 to 3.2.0
@@ -1,3 +0,4 @@ | ||
export { default as parse, Selector, Options } from "./parse"; | ||
export * from "./parse"; | ||
export { default as parse } from "./parse"; | ||
export { default as stringify } from "./stringify"; | ||
//# sourceMappingURL=index.d.ts.map |
"use strict"; | ||
function __export(m) { | ||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; | ||
} | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__export(require("./parse")); | ||
var parse_1 = require("./parse"); | ||
@@ -4,0 +8,0 @@ exports.parse = parse_1.default; |
@@ -8,6 +8,6 @@ export default parse; | ||
export declare type Selector = PseudoSelector | PseudoElement | AttributeSelector | TagSelector | UniversalSelector | Traversal; | ||
interface AttributeSelector { | ||
export interface AttributeSelector { | ||
type: "attribute"; | ||
name: string; | ||
action: Action; | ||
action: AttributeAction; | ||
value: string; | ||
@@ -17,3 +17,3 @@ ignoreCase: boolean; | ||
declare type DataType = Selector[][] | null | string; | ||
interface PseudoSelector { | ||
export interface PseudoSelector { | ||
type: "pseudo"; | ||
@@ -23,19 +23,19 @@ name: string; | ||
} | ||
interface PseudoElement { | ||
export interface PseudoElement { | ||
type: "pseudo-element"; | ||
name: string; | ||
} | ||
interface TagSelector { | ||
export interface TagSelector { | ||
type: "tag"; | ||
name: string; | ||
} | ||
interface UniversalSelector { | ||
export interface UniversalSelector { | ||
type: "universal"; | ||
} | ||
interface Traversal { | ||
export interface Traversal { | ||
type: TraversalType; | ||
} | ||
declare type Action = "any" | "element" | "end" | "equals" | "exists" | "hyphen" | "not" | "start"; | ||
declare type TraversalType = "adjacent" | "child" | "descendant" | "parent" | "sibling"; | ||
export declare type AttributeAction = "any" | "element" | "end" | "equals" | "exists" | "hyphen" | "not" | "start"; | ||
export declare type TraversalType = "adjacent" | "child" | "descendant" | "parent" | "sibling"; | ||
declare function parse(selector: string, options?: Options): Selector[][]; | ||
//# sourceMappingURL=parse.d.ts.map |
@@ -5,3 +5,3 @@ { | ||
"description": "a CSS selector parser", | ||
"version": "3.1.0", | ||
"version": "3.2.0", | ||
"repository": { | ||
@@ -8,0 +8,0 @@ "url": "https://github.com/fb55/css-what" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
20808
348