UNPKG

typespec-bdd

Version:

BDD framework for TypeScript.

40 lines (39 loc) 950 B
export declare enum KeywordType { Unknown = 0, Feature = 1, Scenario = 2, Outline = 3, Examples = 4, Tag = 5, Table = 6, TokenStart = 7, TokenEnd = 8, Given = 9, When = 10, Then = 11, And = 12, } export declare class Keywords { private Feature; private Scenario; private Outline; private Examples; private Tag; private Table; private TokenStart; private TokenEnd; private Given; private When; private Then; private And; private KeywordMap; private KeywordTypeMap; constructor(); is(text: string, keywordType: KeywordType): boolean; trimKeyword(text: string, keywordType: KeywordType): string; getToken(text: string): string; getTags(text: string): string[]; getTableRow(text: string): string[]; private addMap(keyword, keywordType); } export declare const Keyword: Keywords;