File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -471,7 +471,7 @@ export class Source {
471471
472472 data : string = ''
473473
474- mediaType : SourceMediaType = SourceMediaType . TEXT_X_CUCUMBER_GHERKIN_PLAIN
474+ mediaType : SourceMediaType | CustomMediaType = 'text/x.cucumber.gherkin+plain'
475475}
476476
477477export class SourceReference {
@@ -677,10 +677,9 @@ export enum PickleStepType {
677677 OUTCOME = 'Outcome' ,
678678}
679679
680- export enum SourceMediaType {
681- TEXT_X_CUCUMBER_GHERKIN_PLAIN = 'text/x.cucumber.gherkin+plain' ,
682- TEXT_X_CUCUMBER_GHERKIN_MARKDOWN = 'text/x.cucumber.gherkin+markdown' ,
683- }
680+ export type BaseMediaType = 'text/x.cucumber.gherkin' ;
681+ export type CustomMediaType = `${BaseMediaType } +${string } `;
682+ export type SourceMediaType = 'text/x.cucumber.gherkin+plain' | 'text/x.cucumber.gherkin+markdown' ;
684683
685684export enum StepDefinitionPatternType {
686685 CUCUMBER_EXPRESSION = 'CUCUMBER_EXPRESSION' ,
You can’t perform that action at this time.
0 commit comments