findup-sync.d.ts 615 B

12345678910111213141516171819
  1. // Type definitions for findup-sync v0.3.0
  2. // Project: https://github.com/cowboy/node-findup-sync
  3. // Definitions by: Bart van der Schoor <https://github.com/Bartvds>, Nathan Brown <https://github.com/ngbrown>
  4. // Definitions: https://github.com/borisyankov/DefinitelyTyped
  5. /// <reference path="../minimatch/minimatch.d.ts" />
  6. declare module 'findup-sync' {
  7. import minimatch = require('minimatch');
  8. interface IOptions extends minimatch.IOptions {
  9. cwd?: string;
  10. }
  11. function mod(pattern: string[] | string, opts?: IOptions): string;
  12. namespace mod {} // Literally works around a bug in TS
  13. export = mod;
  14. }