@types/findup-sync
TypeScript icon, indicating that this package has built-in type declarations

4.0.5 • Public • Published

Installation

npm install --save @types/findup-sync

Summary

This package contains type definitions for findup-sync (https://github.com/gulpjs/findup-sync).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/findup-sync.

import micromatch = require("micromatch");

export = findupSync;

/**
 * Find the first file matching a given pattern in the current directory or the nearest ancestor directory.
 *
 * @param patternOrPatterns Glob pattern(s) or file path(s) to match against.
 * @param micromatchOptions Options to pass to [micromatch](https://github.com/jonschlinkert/micromatch).
 * Note that if you want to start in a different directory than the current working directory, specify a `cwd` property here.
 * @returns Returns the first matching file.
 */
declare function findupSync(
    patternOrPatterns: string[] | string,
    micromatchOptions?: micromatch.Options,
): string | null;

Additional Details

Credits

These definitions were written by Bart van der Schoor, Nathan Brown, BendingBender, and Kotaro Sugawara.

/@types/findup-sync/

    Package Sidebar

    Install

    npm i @types/findup-sync

    Weekly Downloads

    6,751

    Version

    4.0.5

    License

    MIT

    Unpacked Size

    4.63 kB

    Total Files

    5

    Last publish

    Collaborators

    • types