source: trip-planner-front/node_modules/fast-glob/out/managers/tasks.d.ts@ fa375fe

Last change on this file since fa375fe was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 1.2 KB
Line 
1import Settings from '../settings';
2import { Pattern, PatternsGroup } from '../types';
3export declare type Task = {
4 base: string;
5 dynamic: boolean;
6 patterns: Pattern[];
7 positive: Pattern[];
8 negative: Pattern[];
9};
10export declare function generate(patterns: Pattern[], settings: Settings): Task[];
11/**
12 * Returns tasks grouped by basic pattern directories.
13 *
14 * Patterns that can be found inside (`./`) and outside (`../`) the current directory are handled separately.
15 * This is necessary because directory traversal starts at the base directory and goes deeper.
16 */
17export declare function convertPatternsToTasks(positive: Pattern[], negative: Pattern[], dynamic: boolean): Task[];
18export declare function getPositivePatterns(patterns: Pattern[]): Pattern[];
19export declare function getNegativePatternsAsPositive(patterns: Pattern[], ignore: Pattern[]): Pattern[];
20export declare function groupPatternsByBaseDirectory(patterns: Pattern[]): PatternsGroup;
21export declare function convertPatternGroupsToTasks(positive: PatternsGroup, negative: Pattern[], dynamic: boolean): Task[];
22export declare function convertPatternGroupToTask(base: string, positive: Pattern[], negative: Pattern[], dynamic: boolean): Task;
Note: See TracBrowser for help on using the repository browser.