function Service
Service<S extends Service>(
name: string,
...services: Fn<[S]>[],
)

Define a service.

Type Parameters

S extends Service

Parameters

name: string
...services: Fn<[S]>[]

Return Type

type alias Service

A collection of processes and network endpoints provided by them.

Definition

Dir
& Ports<number>
& { pids: Record<number, ChildProcess>; kill: Fn<[], Async>; }

Usage

import { Service } from ".";