# @types/inquirer-fuzzy-path

> TypeScript definitions for inquirer-fuzzy-path

Latest version **2.3.9** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/inquirer-fuzzy-path
pnpm add @types/inquirer-fuzzy-path
yarn add @types/inquirer-fuzzy-path
bun add @types/inquirer-fuzzy-path
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 2.3.9 |
| Published | 2023-11-07 |
| First published | 2021-06-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 7.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51449 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/inquirer-fuzzy-path
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/inquirer-fuzzy-path
- npm.io page: https://npm.io/package/@types/inquirer-fuzzy-path

## Dependencies (2)

- [@types/inquirer](https://npm.io/package/@types/inquirer.md) ^8
- [@types/inquirer-autocomplete-prompt](https://npm.io/package/@types/inquirer-autocomplete-prompt.md) ^2

## Recent versions

- 2.3.9 (latest) — 2023-11-07
- 2.3.6 (ts4.2) — 2022-10-08
- 2.3.1 (ts3.6) — 2021-07-08
- 2.3.8 — 2023-10-18
- 2.3.7 — 2023-10-08
- 2.3.5 — 2022-08-04
- 2.3.4 — 2022-03-30
- 2.3.3 — 2021-09-26
- 2.3.2 — 2021-09-06
- 2.3.0 — 2021-06-20

## README

# Installation
> `npm install --save @types/inquirer-fuzzy-path`

# Summary
This package contains type definitions for inquirer-fuzzy-path (https://github.com/adelsz/inquirer-fuzzy-path).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/inquirer-fuzzy-path.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/inquirer-fuzzy-path/index.d.ts)
````ts
import { Answers, KeyUnion, QuestionCollection } from "inquirer";
import { AutocompleteQuestionOptions } from "inquirer-autocomplete-prompt";
import InquirerAutocomplete = require("inquirer-autocomplete-prompt");
import { Interface as ReadlineInterface } from "readline";

export = InquirerFuzzyPath;

/**
 * Provides the functionality to create a new Inquirer plugin
 */
declare class InquirerFuzzyPath<T extends Answers> extends InquirerAutocomplete<T> {
    /**
     * Create new InquirerFuzzyPath
     *
     * @param questions
     * The questions to prompt
     * @param rl
     * The readline interface
     * @param answers
     * The currently supplied answers
     */
    constructor(questions: QuestionCollection<T>, rl: ReadlineInterface, answers: Answers);

    /**
     * Curate list of choices.
     *
     * @param searchTerm
     * The term to search for
     */
    search(searchTerm: string): Promise<void>;

    /**
     * When user presses `enter` key
     *
     * @param line
     * The input on the line.
     */
    onSubmit(line: string): void;
}

/**
 * Provides inquirer prompt options for type `InquirerFuzzyPath`.
 */
declare namespace InquirerFuzzyPath {
    /**
     * Provides options for a question of type `InquirerFuzzyPath`.
     *
     * @template T
     * The type of the answers.
     */
    interface FuzzyPathQuestionOptions<T extends Answers = Answers>
        extends Partial<Omit<AutocompleteQuestionOptions<T>, "type">>
    {
        /**
         * The key to save the answer to the answers-hash.
         */
        type: "fuzzypath";

        /**
         * The key to save the answer to the answers-hash.
         */
        name: KeyUnion<T>;

        /**
         * The root search directory, default to ".".
         */
        rootPath?: string | undefined;

        /**
         * A function to exclude some paths from the file-system scan.
         */
        excludePath?: ((path: string) => boolean) | undefined;

        /**
         * A function to exclude some paths from the final list.
         */
        excludeFilter?: ((path: string) => boolean) | undefined;

        /**
         * A string to specify the type of nodes to display, default to "any".
         */
        itemType?: "any" | "directory" | "file" | undefined;

        /**
         * An integer (>= 0) to limit the depth of sub-folders to scan,
         * undefined means infinite.
         */
        depthLimit?: number | undefined;
    }
}

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 03:09:37 GMT
 * Dependencies: [@types/inquirer](https://npmjs.com/package/@types/inquirer), [@types/inquirer-autocomplete-prompt](https://npmjs.com/package/@types/inquirer-autocomplete-prompt)

# Credits
These definitions were written by [迷子 (Maiko Tan)](https://github.com/MaikoTan).

---
_Source: https://npm.io/package/@types/inquirer-fuzzy-path · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
