UNPKG

laravel-mix-glob

Version:

Laravel mix extension that add support for globs usage with an extensive concise api. For a more natural boosted productivity and dynamic. Configure once and forget about adding the files each time.

25 lines (24 loc) 1.15 kB
import { Api as MixApi } from 'laravel-mix'; import { TExtendedApi } from "../../MixApiManager/types"; import { IGlobEvaluation } from './types'; /** * Process glb.src or glb.arg */ export declare class ArgSrcGlobsProcessor { private _globsEvaluations; private _outManagerRef?; private _isEvaluationsValid; getGlobsEvaluations(): IGlobEvaluation[]; isEvaluationsValid(): boolean; private _resolveGlobsArguments; /** * If this is called for the first time resolveGlobsArguments() is called for you. * If not and that means args already resolved once. Either you want to resolve them again * (new args and want to keep using the same instance). You get to use resolveGlobsArguments() * again to do so. Otherwise if not and you know what you are doing you can call it again * directly using the old args and resolution * @param args * @param originalMethod */ process<TMethodName extends keyof MixApi>(args: Parameters<TExtendedApi[TMethodName]>, originalMethodName: string, originalMethod: (...argss: Parameters<MixApi[TMethodName]>) => MixApi): void; }