The schema of how the Options will be created from the user's configuration.
A function that takes the options and returns a promise of a plugin instance.
The parsed and validated options as defined in the schema
A plugin factory that can be used to create plugin instances.
A standard way to define a plugin and which options it needs to work. We recommend using this function to define your plugins, as it provides a clear structure and type safety for the plugin's configuration.