From 17f02bf851d6826a8efc1d9569b67d36a862c750 Mon Sep 17 00:00:00 2001 From: BluJ Date: Fri, 7 Apr 2023 11:45:35 -0600 Subject: [PATCH] chore: Fix some typing --- lib/types.ts | 1 + lib/util/shell.ts | 2 +- package-lock.json | 4 ++-- package.json | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/types.ts b/lib/types.ts index a13eeb9..f45de66 100644 --- a/lib/types.ts +++ b/lib/types.ts @@ -145,6 +145,7 @@ export type Effects = { runDaemon(input: { command: string; args?: string[] }): { wait(): Promise; term(): Promise; + [DaemonProof]: never; }; /** Uses the chown on the system */ diff --git a/lib/util/shell.ts b/lib/util/shell.ts index 851da14..a652cb1 100644 --- a/lib/util/shell.ts +++ b/lib/util/shell.ts @@ -4,5 +4,5 @@ export function sh(shellCommand: string) { return { command: "sh", args: ["-c", shellCommand], - } as Partial[0]>; + } as Parameters[0]; } diff --git a/package-lock.json b/package-lock.json index 3b3d6e8..c23aac4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "start-sdk", - "version": "0.4.0-lib0.charlie3", + "version": "0.4.0-lib0.charlie4", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "start-sdk", - "version": "0.4.0-lib0.charlie3", + "version": "0.4.0-lib0.charlie4", "license": "MIT", "dependencies": { "@iarna/toml": "^2.2.5", diff --git a/package.json b/package.json index f48e46a..395ac5e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "start-sdk", - "version": "0.4.0-lib0.charlie3", + "version": "0.4.0-lib0.charlie4", "description": "For making the patterns that are wanted in making services for the startOS.", "main": "./lib/index.js", "types": "./lib/index.d.ts",