Skip to content

Vizel API / core/src / validateVizelPlugin

Function: validateVizelPlugin()

ts
function validateVizelPlugin(plugin): void;

Defined in: packages/core/src/plugin-system.ts:64

Validate a plugin's required fields and format.

Throw a typed VizelError("INVALID_CONFIG", ...) carrying the offending plugin name in context.plugin when validation fails. A malformed plugin is a developer mistake, so the error surfaces at the boundary rather than flowing through onError.

Parameters

ParameterType
pluginVizelPlugin

Returns

void

Released under the MIT License.