Skip to content

Commit

Permalink
chore: Add types and bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
sylc committed Feb 9, 2024
1 parent a15d995 commit 5ff3cb3
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion deno.jsonc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sylc/dkill",
"version": "0.10.0",
"version": "0.10.1",
"exports": "./mod.ts",
"tasks": {
"test": "deno test --allow-run --allow-net --allow-read",
Expand Down
2 changes: 1 addition & 1 deletion src/dkill.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export async function dkill(
procs?: string[];
},
opts?: { verbose?: boolean; dryrun?: boolean; includeCmds?: boolean },
) {
): Promise<PidToKill[]> {
setVerbose(opts?.verbose);

const { pids, ports, procs } = targets;
Expand Down
5 changes: 4 additions & 1 deletion src/killPids.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@
* @param {boolean} [opts.verbose]
* @returns
*/
export function KillPids(pids: number[], opts?: { verbose?: boolean }) {
export function KillPids(
pids: number[],
opts?: { verbose?: boolean },
): number[] {
const pidKilled: number[] = [];

// Ensure no duplicates.
Expand Down
2 changes: 1 addition & 1 deletion version.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"version": "0.10.0"
"version": "0.10.1"
}

0 comments on commit 5ff3cb3

Please sign in to comment.