Skip to content

Commit 0e8cc0d

Browse files
PascalPicheneSpecc
andauthored
Fix import in types/events/block/index.ts (codex-team#2739)
* Fix import in types/events/block/index.ts Fix wrong placement of the keyword type in the import lines of the types/events/block/index.ts introduced in PR-2491 and released in V2.29.0 preventing compilation. * Update CHANGELOG.md * Update CHANGELOG.md * Update CHANGELOG.md --------- Co-authored-by: Peter Savchenko <[email protected]>
1 parent eb97c49 commit 0e8cc0d

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

docs/CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
- `Improvement` — Placeholders will stay visible on inputs focus.
3333
- `New` — Editor.js now supports contenteditable placeholders out of the box. Just add `data-placeholder` or `data-placeholder-active` attribute to make it work. The first one will work like native placeholder while the second one will show placeholder only when block is current.
3434
- `Improvement` — Now Paragraph placeholder will be shown for the current paragraph, not the only first one.
35+
- `Fix` — The problem caused by missed "import type" in block mutation event types resolved
3536

3637
### 2.29.1
3738

types/events/block/index.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { type BlockAddedEvent, BlockAddedMutationType } from './BlockAdded';
2-
import { type BlockChangedEvent, BlockChangedMutationType } from './BlockChanged';
3-
import { type BlockMovedEvent, BlockMovedMutationType } from './BlockMoved';
4-
import { type BlockRemovedEvent, BlockRemovedMutationType } from './BlockRemoved';
1+
import type { BlockAddedEvent, BlockAddedMutationType } from './BlockAdded';
2+
import type { BlockChangedEvent, BlockChangedMutationType } from './BlockChanged';
3+
import type { BlockMovedEvent, BlockMovedMutationType } from './BlockMoved';
4+
import type { BlockRemovedEvent, BlockRemovedMutationType } from './BlockRemoved';
55

66
/**
77
* Map for Custom Events related to block mutation types

0 commit comments

Comments
 (0)