2.0.4 • Published 6 months ago

@types/isexe v2.0.4

Weekly downloads
114,367
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/isexe

Summary

This package contains type definitions for isexe (https://github.com/isaacs/isexe#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/isexe.

index.d.ts

// Type definitions for isexe 2.0
// Project: https://github.com/isaacs/isexe#readme
// Definitions by: BendingBender <https://github.com/BendingBender>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

/// <reference types="node" />

export = isExe;

declare function isExe(path: string, options?: isExe.Options): Promise<boolean>;
declare function isExe(
    path: string,
    callback: (error: NodeJS.ErrnoException | undefined, isExe: boolean) => void
): void;
declare function isExe(
    path: string,
    options: isExe.Options,
    callback: (error: NodeJS.ErrnoException | undefined, isExe: boolean) => void
): void;

declare namespace isExe {
    function sync(path: string, options?: Options): boolean;

    interface Options {
        ignoreErrors?: boolean | undefined;
        uid?: number | undefined;
        gid?: number | undefined;
        pathExt?: string | undefined;
    }
}

Additional Details

  • Last updated: Tue, 06 Jul 2021 21:33:42 GMT
  • Dependencies: @types/node
  • Global values: none

Credits

These definitions were written by BendingBender.

2.0.3

7 months ago

2.0.2

8 months ago

2.0.4

6 months ago

2.0.1

3 years ago

2.0.0

5 years ago