mirror of
https://github.com/Start9Labs/start-sdk.git
synced 2026-03-26 10:21:55 +00:00
wip"
This commit is contained in:
@@ -3,12 +3,7 @@ import { CheckResult } from "../health/checkFns"
|
||||
import { Trigger } from "../trigger"
|
||||
import { TriggerInput } from "../trigger/TriggerInput"
|
||||
import { defaultTrigger } from "../trigger/defaultTrigger"
|
||||
import {
|
||||
DaemonReturned,
|
||||
Effects,
|
||||
Signals,
|
||||
ValidIfNoStupidEscape,
|
||||
} from "../types"
|
||||
import { DaemonReturned, Effects, ValidIfNoStupidEscape } from "../types"
|
||||
import { createUtils } from "../util"
|
||||
type Daemon<Ids extends string, Command extends string, Id extends string> = {
|
||||
id: "" extends Id ? never : Id
|
||||
@@ -133,7 +128,7 @@ export class Daemons<Ids extends string> {
|
||||
})
|
||||
}
|
||||
return {
|
||||
async term(options?: { signal?: Signals; timeout?: number }) {
|
||||
async term(options?: { signal?: string; timeout?: number }) {
|
||||
await Promise.all(
|
||||
Object.values<Promise<DaemonReturned>>(daemonsStarted).map((x) =>
|
||||
x.then((x) => x.term(options)),
|
||||
|
||||
Reference in New Issue
Block a user