Skip to content
1 min read · 137 words

Function: resolveIsolatedServiceSpec()

ts
function resolveIsolatedServiceSpec<M, S, E>(
  input: IsolatedServiceSpecInput<M, S, E>,
): IsolatedServiceSpec<M, S, E>;

Defined in: src/batteries/isolation/types.ts:198

Resolve an isolated-service spec input into its final IsolatedServiceSpec shape — filling in {} defaults for omitted methods/streams/events. Pure and zero-import: performs NO validation (no duplicate-name check, no empty-name check). This is the primitive the public, validating defineIsolatedService (exported from validation.ts and re-exported from this battery's index.ts barrel) delegates to after it validates the input — call this directly only from tests that intentionally want to bypass validation.

Type Parameters

Type ParameterDefault type
M extends MethodMapRecord<never, never>
S extends StreamMapRecord<never, never>
E extends EventMapRecord<never, never>

Parameters

ParameterType
inputIsolatedServiceSpecInput<M, S, E>

Returns

IsolatedServiceSpec<M, S, E>