mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-17 22:44:18 +08:00
17 lines
518 B
TypeScript
17 lines
518 B
TypeScript
// Type definitions for find-up 2.1
|
|
// Project: https://github.com/sindresorhus/find-up#readme
|
|
// Definitions by: BendingBender <https://github.com/BendingBender>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
export = findUp;
|
|
|
|
declare function findUp(filename: string | string[], options?: findUp.Options): Promise<string | null>;
|
|
|
|
declare namespace findUp {
|
|
function sync(filename: string | string[], options?: Options): string | null;
|
|
|
|
interface Options {
|
|
cwd?: string;
|
|
}
|
|
}
|