Type alias PluginNameFromConversationOptionsWithGlobalPlugins<TOptions>Internal

PluginNameFromConversationOptionsWithGlobalPlugins<TOptions>: ConversationGlobalPluginsOverride extends {
        globalPlugins: ConversationPlugin[];
    }
    ? TOptions["plugins"] extends ConversationPlugin[]
        ? PluginNameFromConversationOptions<TOptions> | GlobalPluginName
        : GlobalPluginName
    : PluginNameFromConversationOptions<TOptions> | string & {}

Utility type to infer the possible plugin names available in a conversation, based on the options passed to the conversation, as well as the global plugins.

This type is used internally to determine the type of the plugin names available in a conversation. It should have no use outside of the library.

Type Parameters

Generated using TypeDoc