gherkin-ast
Version:
JS model for Gherkin feature files
25 lines (24 loc) • 773 B
TypeScript
import { GherkinDocument } from "../gherkinObject";
import { Comment } from "./comment";
import { Feature } from "./feature";
import { UniqueObject } from "./uniqueObject";
/**
* Model for Document
*/
export declare class Document extends UniqueObject {
feature: Feature;
static parse(obj: GherkinDocument): Document;
/** URI of the original file, parsed */
uri: string;
sourceFolder: string;
sourceFile: string;
targetFolder: string;
targetFile: string;
/** Comment at the start of the feature file */
startComment: Comment;
/** Comment at the end of the feature file */
endComment: Comment;
constructor(uri: string, feature?: Feature);
clone(): Document;
replace(key: RegExp | string, value: string): void;
}