mirror of
https://github.com/makeplane/plane.git
synced 2026-07-13 05:49:40 +02:00
fix: type error
This commit is contained in:
@@ -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) => {
|
||||
|
||||
@@ -23,3 +23,10 @@ export type TDisplayConfig = {
|
||||
fontStyle?: TEditorFontStyle;
|
||||
fontSize?: TEditorFontSize;
|
||||
};
|
||||
|
||||
export type TUserDetails = {
|
||||
color: string;
|
||||
id: string;
|
||||
name: string;
|
||||
cookie?: string;
|
||||
};
|
||||
@@ -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;
|
||||
|
||||
@@ -1 +1,3 @@
|
||||
export * from "@/helpers/yjs-utils";
|
||||
export * from "@/types/config";
|
||||
export * from "@/types/document-events";
|
||||
|
||||
Reference in New Issue
Block a user