clarity-pattern-parser
Advanced tools
Comparing version 2.0.13 to 2.0.14
@@ -206,2 +206,28 @@ export declare class Node { | ||
export type TextInspection = { | ||
pattern: Pattern | null; | ||
astNode: Node | null; | ||
match: { | ||
text: string; | ||
startIndex: number; | ||
endIndex: number; | ||
} | null; | ||
error: { | ||
text: string; | ||
startIndex: number; | ||
endIndex: number; | ||
} | null; | ||
tokens: { | ||
startIndex: number; | ||
options: string[] | null; | ||
} | null; | ||
isComplete: boolean; | ||
parseStack: Node[] | null; | ||
}; | ||
export declare class TextInspector { | ||
inspect(text: string, pattern: Pattern): TextInspection; | ||
static inspect(text: string, pattern: Pattern): TextInspection; | ||
} | ||
export declare class ParseError { | ||
@@ -208,0 +234,0 @@ constructor(message: string, index: number, pattern: Pattern); |
{ | ||
"name": "clarity-pattern-parser", | ||
"type": "module", | ||
"version": "2.0.13", | ||
"version": "2.0.14", | ||
"description": "", | ||
@@ -12,2 +12,3 @@ "main": "./lib/index.js", | ||
}, | ||
"types": "./index.d.ts", | ||
"keywords": [], | ||
@@ -14,0 +15,0 @@ "devDependencies": { |
886331
13246