Skip to main content

transpiler.api

API Report File for "jest-bdd-generator"

Do not edit this file. It is a report generated by API Extractor.


import * as ts from 'typescript';

// @public (undocumented)
export const customTransformerFactory: (searchSchema: ISearchCallSchema, self: Transpile) => ts.CustomTransformerFactory;

// @public (undocumented)
export type IArgumentsSearchContext = {
host: string;
stepOfCurrentFunction: Step;
};

// @public (undocumented)
export type ICallbackOnFunctionExpression = (node: ts.Expression, callExpression: ts.CallExpression, context: IArgumentsSearchContext, ..._any: unknown[]) => void;

// @public (undocumented)
export type ISearchCallSchema = Array<ISearchExpressionSchema>;

// @public (undocumented)
export type ISearchExpressionSchema = {
keyword: string;
arguments: {
callback?: ICallbackOnFunctionExpression;
searchCallSchema?: ISearchCallSchema;
}[];
chain?: ISearchCallSchema;
};

// @public (undocumented)
export class Transpile {
constructor(searchSchema?: ISearchCallSchema);
// (undocumented)
callbackOnFnArgument: ICallbackOnFunctionExpression;
// Warning: (ae-forgotten-export) The symbol "IStepKey" needs to be exported by the entry point index.d.ts
//
// (undocumented)
callbackOnStringArgumentFactory: (name: IStepKey) => ICallbackOnFunctionExpression;
// (undocumented)
dealwithSourceMap(input: string): Record<string, string>;
// (undocumented)
generateComments(): string;
// (undocumented)
generateFromKnownSteps(block: ts.Block): Transpile['output'];
// (undocumented)
getComments(block: ts.Block, _lastItem?: Step): Transpile['output'];
// (undocumented)
getDeclaration(declaration: ts.VariableDeclaration | ts.BindingElement): string[];
// (undocumented)
groupToScenario(): void;
set input(input: string);
// (undocumented)
get input(): string;
// (undocumented)
output: Step[];
// (undocumented)
outputCode(): string;
// (undocumented)
parsePosition(pos: number): Step['pos']['start'];
// (undocumented)
possibleStep: Step[];
// (undocumented)
searchSchema: ISearchCallSchema;
// (undocumented)
source: string;
// (undocumented)
sourceFile?: ts.SourceFile;
// (undocumented)
get steps(): Step[];
// (undocumented)
transpile(input: string, options?: ts.TranspileOptions): ts.TranspileOutput;
// (undocumented)
get uniqueSteps(): Step[];
}

// Warnings were encountered during analysis:
//
// dist/types/transpiler/index.d.ts:6:5 - (ae-forgotten-export) The symbol "Step" needs to be exported by the entry point index.d.ts

// (No @packageDocumentation comment for this package)