Skip to content

Commit bc2bb69

Browse files
committed
feat(editor): export CraftileEditor class
1 parent 66e062c commit bc2bb69

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
"@craftile/editor": patch
3+
---
4+
5+
feat(editor): export CraftileEditor class
6+
7+
Export the `CraftileEditor` class from the main package entry point, allowing users to import it directly for type annotations and advanced usage.
8+
9+
```typescript
10+
// Now available
11+
import { CraftileEditor } from '@craftile/editor';
12+
import type { CraftileEditor } from '@craftile/editor';
13+
```

packages/editor/src/app.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import { CraftileEditor, type CraftileEditorOptions } from './editor';
22

3+
export { CraftileEditor };
4+
35
export interface CreateCraftileEditorOptions extends CraftileEditorOptions {
46
el?: string | HTMLElement;
57
}

0 commit comments

Comments
 (0)