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

5.0.3 • Public • Published

Installation

npm install --save @types/taskkill

Summary

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

Details

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

index.d.ts

/**
 * Kill asynchronously.
 * @async
 * @param input
 * @param [options]
 */
export function taskkill(input: Input, options?: Options): Promise<void>;

/**
 * Kill synchronously.
 * @param input
 * @param [options]
 */
export function taskkillSync(input: Input, options?: Options): void;

/**
 * One or more process IDs or image names, but not mixed.
 */
export type Input = string | string[] | number | number[];

export interface Options {
    /**
     * Name or IP address of a remote computer (do not use backslashes).
     * The default is the local computer.
     */
    system?: string | undefined;
    /**
     * A user specified by User or Domain\User.
     * The default is the permissions of the current logged on user on the computer issuing the command.
     */
    username?: string | undefined;
    /**
     * Password of the user account for the specified `username`.
     */
    password?: string | undefined;
    /**
     * Types of processes to include or exclude from termination.
     * See the `taskkill` docs for supported filters.
     */
    filter?: string | undefined;
    /**
     * Forcefully terminate processes.
     * Ignored for remote processes as all remote processes are forcefully terminated.
     */
    force?: boolean | undefined;
    /**
     * Terminate all child processes along with the parent process, commonly known as a tree kill.
     */
    tree?: boolean | undefined;
}

Additional Details

  • Last updated: Tue, 07 Nov 2023 15:11:36 GMT
  • Dependencies: none

Credits

These definitions were written by Piotr Błażejewicz.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/taskkill

Weekly Downloads

104

Version

5.0.3

License

MIT

Unpacked Size

5.44 kB

Total Files

5

Last publish

Collaborators

  • types