UNPKG

@cucumber/cucumber

Version:

The official JavaScript implementation of Cucumber.

22 lines (21 loc) 787 B
import { ICreateAttachment, ICreateLink, ICreateLog } from '../runtime/attachment_manager'; export interface IWorldOptions<ParametersType = any> { attach: ICreateAttachment; log: ICreateLog; link: ICreateLink; parameters: ParametersType; } export interface IWorld<ParametersType = any> { readonly attach: ICreateAttachment; readonly log: ICreateLog; readonly link: ICreateLink; readonly parameters: ParametersType; [key: string]: any; } export default class World<ParametersType = any> implements IWorld<ParametersType> { readonly attach: ICreateAttachment; readonly log: ICreateLog; readonly link: ICreateLink; readonly parameters: ParametersType; constructor({ attach, log, link, parameters, }: IWorldOptions<ParametersType>); }