fix: type error

This commit is contained in:
Palanikannan M
2024-11-14 17:18:05 +05:30
parent 869db76641
commit acc439934d
4 changed files with 13 additions and 7 deletions

View File

@@ -147,9 +147,10 @@ export const toggleFlatToggleList = (editor: Editor, range?: Range) => {
.deleteRange(range)
.createList({
kind: "toggle",
collapsed: true,
})
.run();
else editor.chain().focus().createList({ kind: "toggle", collapsed: false });
else editor.chain().focus().createList({ kind: "toggle", collapsed: true });
};
export const toggleStrike = (editor: Editor, range?: Range) => {

View File

@@ -23,3 +23,10 @@ export type TDisplayConfig = {
fontStyle?: TEditorFontStyle;
fontSize?: TEditorFontSize;
};
export type TUserDetails = {
color: string;
id: string;
name: string;
cookie?: string;
};

View File

@@ -12,6 +12,7 @@ import {
TExtensions,
TFileHandler,
TServerHandler,
TUserDetails,
} from "@/types";
import { TTextAlign } from "@/extensions";
@@ -189,12 +190,7 @@ export interface IDocumentReadOnlyEditor extends IReadOnlyEditorProps {
handleEditorReady?: (value: boolean) => void;
}
export type TUserDetails = {
color: string;
id: string;
name: string;
cookie?: string;
};
export type TRealtimeConfig = {
url: string;

View File

@@ -1 +1,3 @@
export * from "@/helpers/yjs-utils";
export * from "@/types/config";
export * from "@/types/document-events";