API / @aionbuilders/nabu

RegionsEditor

Type Stability: stable

An editor built with RegionsExtension: nabu.regions (the registry, same as Regions.get(nabu)) is installed by the extension's onInit hook, never by the engine, so the Nabu type does not have it. createFullEditor() returns this type; with your own preset, annotate the editor: /** @type {RegionsEditor} */ (createEditor({ preset })), or use Regions.get(nabu).

Definition

TypeScript
import type { RegionsEditor } from '@aionbuilders/nabu';
TypeScript
type RegionsEditor = Nabu & { readonly regions: Regions }

Combined with Nabu

Properties

Properties of RegionsEditor
PropertyTypeDescription
regionsreadonlyRegionsn/a

Source: src/lib/blocks/region/region.extension.js:21