react-dsl-editor 0.4.0 → 0.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -74,6 +74,8 @@ export declare function isParserSuccess<T extends string>(result: ParserResult<T
74
74
 
75
75
  export declare function named<T extends string, K extends string>(name: T, child: GrammarNode<K>): GrammarNode<T | K>;
76
76
 
77
+ export declare const newline: GrammarNode<never>;
78
+
77
79
  export declare function nodeName<T extends string>(node: {
78
80
  grammar: GrammarNode<T>;
79
81
  }): T | undefined;
@@ -103,13 +105,15 @@ export declare interface ParserSuccess<T extends string = never> {
103
105
  text: string;
104
106
  grammar: GrammarNode<T>;
105
107
  children: ParserSuccess<T>[];
106
- recoverableError?: boolean;
108
+ errorLabel?: ParserError<T>;
107
109
  }
108
110
 
109
111
  export declare class ParsingError extends Error {
110
112
  constructor(msg: string);
111
113
  }
112
114
 
115
+ export declare function pathToString(v: GrammarNode<string>[]): string;
116
+
113
117
  export declare function pattern(regex: RegExp): GrammarNode<never>;
114
118
 
115
119
  export declare const rational: GrammarNode<never>;
@@ -133,6 +137,8 @@ declare const themes: {
133
137
 
134
138
  export declare function visit<T extends string, V = string>(parserResult: ParserSuccess<T>, type: T[], extractor?: (node: ParserSuccess<T>) => V): V[];
135
139
 
140
+ export declare function visitPredicate<T extends string, V = string>(parserResult: ParserSuccess<T>, filter: (v: ParserSuccess<T>) => boolean, extractor?: (node: ParserSuccess<T>) => V): V[];
141
+
136
142
  export declare const ws: GrammarNode<never>;
137
143
 
138
144
  export { }