@dxos/app-framework - v0.15.0
    Preparing search index...

    Type Alias PluginFactory<T>

    PluginFactory: (
        {} extends T
            ? (options?: T) => Plugin.Plugin
            : (options: T) => Plugin.Plugin
    ) & { meta: Plugin.Meta }

    A plugin factory. The options parameter is optional exactly when T has no required members ({} extends T — every field is optional, or T is void), so SomePlugin() is accepted without an empty {}; a plugin whose options include a required field still demands them.

    Type Parameters

    • T = void