definePlugin
function definePlugin<T>(plugin): T;Returns the plugin as given; it only helps TypeScript infer its type.
Type Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
T extends RuledPlugin |
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
plugin |
T |
Returns
Section titled “Returns”T