@examind/block-types
v0.3.6
Published
TypeScript type definitions for Lexical editor state
Readme
@examind/block-types
TypeScript type definitions shared between @examind/block-editor and @examind/block-sdk.
Purpose
- Defines shared types across Examind block editor packages
- Extracts necessary type definitions from Lexical
- Allows
@examind/block-sdkto avoid a direct dependency on Lexical - Zero runtime payload (declaration files only)
Usage
import type {
LexicalEditor,
LexicalNode,
} from '@examind/block-types';Development
This package contains only TypeScript declaration files (.d.ts), with no compilation step required.
# Copy types from Lexical
pnpm copy-typesIntegration
In consuming packages:
{
"devDependencies": {
"@examind/block-types": "workspace:*"
}
}