UNPKG

gherkin-ast

Version:

JS model for Gherkin feature files

27 lines (26 loc) 929 B
import { Comment } from "./comment"; import { Step } from "./step"; import { UniqueObject } from "./uniqueObject"; export declare const REPEAT_STEP_KEYWORDS: string[]; /** * Model for Element */ export declare class Element extends UniqueObject { /** Keyword of the Element */ keyword: "Background" | "Scenario" | "Example" | "Scenario Outline" | "Scenario Template" | string; /** Name of the Element */ name: string; /** Description of the Element */ description: string; /** Steps of the Element */ steps: Step[]; /** Comment before the Element */ precedingComment: Comment; /** Comment after the description of the Element */ descriptionComment: Comment; constructor(keyword: string, name: string, description: string); clone(): Element; replace(key: RegExp | string, value: string): void; useNormalStepKeywords(): void; useReadableStepKeywords(): void; }