UNPKG

@reactant/helpers

Version:
15 lines (14 loc) 701 B
import { Context } from '@reactant/types'; import { Options as ExecaOptions, ExecaReturnValue } from 'execa'; import Api from './api'; import mapSeries from './mapSeries'; import spawn from './spawn'; import where from './where'; export default class Helpers { context: Context; constructor(context: Context); spawn(bin: string | string[], args?: string[], options?: ExecaOptions): Promise<ExecaReturnValue<string>>; mapSeries<V = any, R = V>(values: Array<V>, iterator: (value: V, i?: number, length?: number) => Promise<R>): Promise<R[]>; where(program: string, unixCommand?: string, PATH?: string | undefined): Promise<string | null>; } export { mapSeries, spawn, where, Api };