Type alias PluginOf<T>

PluginOf<T>: __plugin extends keyof T
    ? T[__plugin]
    : any

Infers plugins that were injected into a field

Use PluginOf<this> in plugin interfaces to infer all plugin interfaces that were intersected with the bare field.

Type Parameters

  • T

    The field to infer plugin of.