Vizel API / core/src / deriveVizelCommandSpec
Function: deriveVizelCommandSpec()
ts
function deriveVizelCommandSpec(
command,
editor,
locale): VizelCommandSpec;Defined in: packages/core/src/commands/derive.ts:14
Derive a VizelCommandSpec for a single editor instance.
Surface builders call this helper for each command they include in their output so the resulting spec carries the localized strings and the runtime-evaluated isEnabled / isActive flags expected by the spec shapes.
Parameters
| Parameter | Type |
|---|---|
command | VizelCommand |
editor | Editor |
locale | VizelLocale |