0.5.3 • Published 7 months ago

@types/find-in-files v0.5.3

Weekly downloads
370
License
MIT
Repository
github
Last release
7 months ago

Installation

npm install --save @types/find-in-files

Summary

This package contains type definitions for find-in-files (https://github.com/kaesetoast/find-in-files).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/find-in-files.

index.d.ts

// Type definitions for find-in-files 0.5
// Project: https://github.com/kaesetoast/find-in-files
// Definitions by: goooseman <https://github.com/goooseman>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

export interface FindResult {
    [filePath: string]: {
        matches: string[];
        count: number;
        line: string | null;
    };
}

export interface RegexControlOptions {
    term: string;
    flags: string;
}

export function find(
    pattern: string | RegExp | RegexControlOptions,
    directory: string,
    fileFilter?: string | RegExp,
): Promise<FindResult>;
export function findSync(
    pattern: string | RegExp | RegexControlOptions,
    directory: string,
    fileFilter?: string | RegExp,
): FindResult;

Additional Details

  • Last updated: Sun, 30 May 2021 19:31:15 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by goooseman.