recipe-ts-runtime
Version:
TypeScript run-time library for the Recipe framework
22 lines (21 loc) • 721 B
TypeScript
import { Ingredient } from "./Ingredient";
import { KeyedIngredient } from "./KeyedIngredient";
export interface Segment {
domain: string | null;
recipe: Recipe;
}
export declare class Recipe extends Ingredient {
private readonly ingredients;
private context;
static prepare(...ingredients: Ingredient[]): Recipe;
static context(context: string | KeyedIngredient, ...ingredients: Ingredient[]): Recipe;
getIngredients(): Ingredient[];
getContext(): string | null;
segment(): Segment[];
private _segment;
toJSON(): any;
static fromJSON(json: any, ingredientTypes: {
[key: string]: Function;
}): Recipe;
protected constructor(...ingredients: Ingredient[]);
}