Skip to content

Commit

Permalink
build lib
Browse files Browse the repository at this point in the history
  • Loading branch information
uidev1116 committed Jul 8, 2024
1 parent 9b27378 commit e351b97
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion lib/extensions/paragraph.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ export default class Paragraph extends Extension {
customMenu({ state, dispatch }: {
state: any;
dispatch: any;
}): JSX.Element;
}): JSX.Element | null;
onClick(state: any, dispatch: any): void;
}
12 changes: 6 additions & 6 deletions lib/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,18 +46,18 @@ export declare abstract class Extension {
customMenu?({ state, dispatch }: {
state: EditorState;
dispatch: Dispatch;
}): JSX.Element;
}): JSX.Element | null;
customInlineMenu?({ state, dispatch }: {
state: EditorState;
dispatch: Dispatch;
}): JSX.Element;
customLayout?(props: CustomLayoutProps, dom: HTMLElement): JSX.Element;
}): JSX.Element | null;
customLayout?(props: CustomLayoutProps, dom: HTMLElement): JSX.Element | null;
customButton?({ state, dispatch }: {
state: EditorState;
dispatch: Dispatch;
}): JSX.Element;
customIcon?: JSX.Element | string;
icon?: JSX.Element | string;
}): JSX.Element | null;
customIcon?: JSX.Element | string | null;
icon?: JSX.Element | string | null;
plugins?: Plugin<any>[];
showMenu: boolean;
hideMenuOnFocus?: boolean;
Expand Down

0 comments on commit e351b97

Please sign in to comment.