Skip to content
philosophy contribute api

definePlugin

definePlugin<Descriptor>(descriptor): Descriptor

Defined in: core/src/plugins/api.ts:108

Define a Levl plugin.

Descriptor extends PluginDescriptor

The type of the plugin descriptor.

Descriptor

The plugin descriptor.

Descriptor

same as descriptor.

Does not actually do anything. Currently only used for type checking when defining plugin attributes as functions support generics.