$ cnpm install @types/taskkill
npm install --save @types/taskkill
This package contains type definitions for taskkill (https://github.com/sindresorhus/taskkill#readme).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/taskkill.
/**
* 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;
}
These definitions were written by Piotr Błażejewicz.
Copyright 2013 - present © cnpmjs.org | Home |