ecspresso
    Preparing search index...

    Function definePlugin

    • Entry point for the fluent plugin builder. Pass the plugin id and chain type-accumulator methods, terminating with .install(fn).

      Parameters

      • id: string

      Returns PluginBuilder

      const myPlugin = definePlugin('my-plugin')
      .withComponentTypes<MyComponents>()
      .withResourceTypes<MyResources>()
      .install((world) => { ... });