UNPKG

makit

Version:

Make in JavaScript done right!

10 lines (9 loc) 382 B
import { Context } from '../context'; import { Callback } from '../utils/promise'; import { TimeStamp } from '../fs/time-stamp'; export declare type RecipeDeclaration = (this: Context, ctx: Context, done?: Callback<any>) => (any | Promise<any>); export declare class Recipe { private fn; constructor(fn: RecipeDeclaration); make(context: Context): Promise<TimeStamp>; }