mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-02-26 02:32:49 +00:00
24 lines
678 B
TypeScript
24 lines
678 B
TypeScript
// Type definitions for fined 1.1
|
|
// Project: https://github.com/gulpjs/fined
|
|
// Definitions by: BendingBender <https://github.com/BendingBender>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
export = fined;
|
|
|
|
declare function fined(path: string | fined.PathSpec, opts?: fined.PathSpec): fined.Result | null;
|
|
|
|
declare namespace fined {
|
|
interface PathSpec {
|
|
path?: string;
|
|
name?: string;
|
|
extensions?: string | string[] | { [extension: string]: string | null };
|
|
cwd?: string;
|
|
findUp?: boolean;
|
|
}
|
|
|
|
interface Result {
|
|
path: string;
|
|
extension: string | { [extension: string]: string };
|
|
}
|
|
}
|