UNPKG

prebundle

Version:
13 lines (12 loc) 769 B
import type { Config, DependencyConfig, ParsedTask } from './types.js'; export declare function findDepPath(name: string): string | null; export declare const resolveConfig: (configFile?: string) => Promise<Config>; export declare function parseTasks(dependencies: Array<string | DependencyConfig>, globalPrettier?: boolean): ParsedTask[]; export declare function pick<T, U extends keyof T>(obj: T, keys: ReadonlyArray<U>): Pick<T, U>; export declare function replaceFileContent(filePath: string, replaceFn: (content: string) => string): void; export declare function pkgNameToAtTypes(name: string): string; /** * Find the direct type file for a given file path. * @param filepath */ export declare function findDirectTypeFile(filepath: string): string | undefined;