npmextra/dist/index.d.ts
2016-09-23 22:13:06 +02:00

19 lines
479 B
TypeScript

/**
* the main interface npmextra functions work with
*/
export interface IDataFor {
toolName: string;
defaultSettings?: any;
cwd?: string;
}
/**
* gets you the configuration data for
* @executes SYNC
*/
export declare let dataFor: <IOptions>(optionsArg: IDataFor) => IOptions;
export declare let dataForExists: (optionsArg: IDataFor) => boolean;
/**
* tells you if a configfile is present
*/
export declare let configFilePresent: (cwdArg: string) => boolean;