HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/SBogers10/shop.komma.nl/node_modules/fkill/index.d.ts
declare namespace fkill {
	interface Options {
		/**
		Force kill the process.

		@default false
		*/
		readonly force?: boolean;

		/**
		Kill all child processes along with the parent process. _(Windows only)_

		@default true
		*/
		readonly tree?: boolean;

		/**
		Ignore capitalization when killing a process.

		Note that the case is always ignored on Windows.

		@default false
		*/
		readonly ignoreCase?: boolean;
	}
}

declare const fkill: {
	/**
	Fabulously kill processes. Cross-platform.

	@param input - One or more process IDs/names/ports to kill. To kill a port, prefix it with a colon. For example: `:8080`.

	@example
	```
	import fkill = require('fkill');

	(async () => {
		await fkill(1337);
		console.log('Killed process');
	})();

	fkill('Safari');
	fkill(':8080');

	fkill([1337, 'Safari', ':8080']);
	```
	*/
	(
		input: number | string | ReadonlyArray<string | number>,
		options?: fkill.Options
	): Promise<void>;

	// TODO: remove this in the next major version, refactor the whole definition to:
	// declare function fkill(
	//	input: number | string | ReadonlyArray<string | number>,
	//	options?: fkill.Options
	// ): Promise<void>
	// export = fkill;
	default: typeof fkill;
};

export = fkill;