definePlugin
definePlugin<
Descriptor>(descriptor):Descriptor
Defined in: core/src/plugins/api.ts:108
Define a Levl plugin.
Type Parameters
Section titled “Type Parameters”Descriptor
Section titled “Descriptor”Descriptor extends PluginDescriptor
The type of the plugin descriptor.
Parameters
Section titled “Parameters”descriptor
Section titled “descriptor”Descriptor
The plugin descriptor.
Returns
Section titled “Returns”Descriptor
same as descriptor.
Remarks
Section titled “Remarks”Does not actually do anything. Currently only used for type checking when defining plugin attributes as functions support generics.