Skip to content

Commit

Permalink
[DEV-19138] Fix incompatible onDOMBeforeInput definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
e1himself committed Jan 15, 2025
1 parent d629ae0 commit 5889c53
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 6 deletions.
3 changes: 0 additions & 3 deletions packages/slate-commons/src/types/OnDOMBeforeInput.ts

This file was deleted.

1 change: 0 additions & 1 deletion packages/slate-commons/src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ export type { DecorateFactory } from './DecorateFactory';
export type { DeserializeHtml, DeserializeElement, DeserializeMarks } from './DeserializeHtml';
export type { Extension } from './Extension';
export type { Normalize } from './Normalize';
export type { OnDOMBeforeInput } from './OnDOMBeforeInput';
export type { OnKeyDown } from './OnKeyDown';
export type { RenderElement } from './RenderElement';
export type { RenderLeaf } from './RenderLeaf';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import type {
Decorate,
Extension,
OnDOMBeforeInput,
OnKeyDown,
RenderElement,
RenderLeaf,
Expand Down Expand Up @@ -36,7 +35,7 @@ export interface Props {
*/
extensions?: Extension[];
onCut?: (event: React.ClipboardEvent<HTMLDivElement>) => void;
onDOMBeforeInput?: OnDOMBeforeInput;
onDOMBeforeInput?: (event: InputEvent) => void;
/**
* Handlers when we press a key
*/
Expand Down

0 comments on commit 5889c53

Please sign in to comment.