Skip to content

DI Bag API / index / PluginOutputValidator

Type Alias: PluginOutputValidator<V> ​

ts
type PluginOutputValidator<V> = (this: void, pluginOutput: unknown) => pluginOutput is V;

Defined in: plugins.ts:40

A synchronous predicate that admits an unknown plugin output as a service type.

Type Parameters ​

Type ParameterDescription
V-

Parameters ​

ParameterDescription
this-
pluginOutput-

See ​

https://dany-fedorov.github.io/di-bag/guides/tutorial.html#admit-an-application-selected-plugin

Ordinary services. Checked composition. Explicit ownership.