Skip to content

InputAttachTarget<TProviders>

Extracts the attach() target type declared by an AttachableInputProvider in a providers array.

type InputAttachTarget<TProviders> = TProviders[number] extends infer TProvider ? TProvider extends {
  attach: void | Promise<void>;
} ? TTarget : never : never;

Defined in: src/core/types/providers.ts:1770

Extracts the attach() target type declared by an AttachableInputProvider in a providers array.

Type Parameters

Type ParameterDescription
TProviders extends readonly BaseProvider[]The providers array type inferred by the CompositeVoice constructor.

Remarks

Distributes over the providers union: providers without an attach() method contribute never, so a pipeline with no attachable provider resolves to never overall (and startListening() takes no parameter).

© 2026 CompositeVoice. All rights reserved.

Font size
Contrast
Motion
Transparency