Shared TypeScript type definitions for the Pexelize Editor SDK. This is the single source of truth for all public API types used by the framework wrappers:
Website | Documentation | Dashboard
# npm
npm install @pexelize/editor-types
# yarn
yarn add @pexelize/editor-types
# pnpm
pnpm add @pexelize/editor-typesNote: You typically don't need to install this package directly. It's included as a dependency of the framework wrappers (
@pexelize/react-email-editor,@pexelize/vue-email-editor,@pexelize/angular-email-editor), and all types are re-exported from those packages.
Import types directly when you need fine-grained control:
import type {
PexelizeSDK,
PexelizeConfig,
EditorOptions,
DesignJson,
EditorMode,
ExportHtmlOptions,
MergeTag,
MergeTagGroup,
Module,
AIConfig,
AppearanceConfig,
ToolsConfig,
FeaturesConfig,
EditorEventName,
} from "@pexelize/editor-types";Or import from a framework wrapper (they re-export everything):
// React
import type { EditorOptions, DesignJson } from "@pexelize/react-email-editor";
// Vue
import type { EditorOptions, DesignJson } from "@pexelize/vue-email-editor";
// Angular
import type { EditorOptions, DesignJson } from "@pexelize/angular-email-editor";This package exports 200+ types covering the entire Pexelize Editor SDK surface:
| Category | Key Types |
|---|---|
| Core | EditorMode, ThemeMode, ViewMode, TextDirection, AccentColor, LocaleCode |
| Configuration | PexelizeConfig, EditorOptions, AppearanceConfig, ToolsConfig, FeaturesConfig, AIConfig |
| Design data | DesignJson, RowData, ColumnData, ContentData, BodyValues |
| Export | ExportHtmlOptions, ExportImageOptions, ExportImageData, ExportPdfOptions, ExportPdfData, ExportZipOptions, ExportZipData |
| Merge tags | MergeTag, MergeTagGroup, MergeTagsConfig |
| Special links | SpecialLink, SpecialLinkGroup, SpecialLinksConfig |
| Modules | Module, ModuleData, ModuleMetadata, ModuleType |
| Popup | PopupConfig, PopupValues, PopupPosition, PopupOverlay |
| Collaboration | CollaborationFeaturesConfig, CommentAction, UserInfo |
| Custom tools | PexelizeToolConfig, PexelizeWidgetConfig, CustomToolConfig |
| Asset storage | ExternalStorageConfig, ExternalAsset, ExternalFolder |
| Events & callbacks | EditorEventName, PexelizeCallbacks |
| Validation | AuditResult, AuditOptions, ValidatorFunction |
| SDK interface | PexelizeSDK (full interface for all public methods) |
pexelize-editor-types/
src/
index.ts # All type definitions (single-file source of truth)
dist/ # Build output (declarations + JS)
tsconfig.json # TypeScript configuration
| Script | Description |
|---|---|
npm run build |
Compile TypeScript to dist/ |
npm run clean |
Remove the dist/ directory |
See CONTRIBUTING.md for guidelines on how to contribute to this project.