diff --git a/packages/client/src/tiptap/core/extensions/document-reference.ts b/packages/client/src/tiptap/core/extensions/document-reference.ts index fe8b3bd8..40e716aa 100644 --- a/packages/client/src/tiptap/core/extensions/document-reference.ts +++ b/packages/client/src/tiptap/core/extensions/document-reference.ts @@ -1,3 +1,4 @@ +import { IUser } from '@think/domains'; import { mergeAttributes, Node, wrappingInputRule } from '@tiptap/core'; import { ReactNodeViewRenderer } from '@tiptap/react'; import { DocumentReferenceWrapper } from 'tiptap/core/wrappers/document-reference'; @@ -5,7 +6,7 @@ import { getDatasetAttribute } from 'tiptap/prose-utils'; export type IDocumentReferenceAttrs = { defaultShowPicker?: boolean; - createUser: string; + createUser?: IUser['id']; }; declare module '@tiptap/core' { diff --git a/packages/client/src/tiptap/core/extensions/katex.ts b/packages/client/src/tiptap/core/extensions/katex.ts index 6600a3c7..0512642a 100644 --- a/packages/client/src/tiptap/core/extensions/katex.ts +++ b/packages/client/src/tiptap/core/extensions/katex.ts @@ -1,3 +1,4 @@ +import { IUser } from '@think/domains'; import { mergeAttributes, Node, nodeInputRule } from '@tiptap/core'; import { ReactNodeViewRenderer } from '@tiptap/react'; import { KatexWrapper } from 'tiptap/core/wrappers/katex'; @@ -5,7 +6,7 @@ import { KatexWrapper } from 'tiptap/core/wrappers/katex'; export type IKatexAttrs = { text?: string; defaultShowPicker?: boolean; - createUser: string; + createUser?: IUser['id']; }; declare module '@tiptap/core' { diff --git a/packages/client/src/tiptap/core/extensions/status.ts b/packages/client/src/tiptap/core/extensions/status.ts index 03de8621..df043664 100644 --- a/packages/client/src/tiptap/core/extensions/status.ts +++ b/packages/client/src/tiptap/core/extensions/status.ts @@ -1,3 +1,4 @@ +import { IUser } from '@think/domains'; import { mergeAttributes, Node } from '@tiptap/core'; import { ReactNodeViewRenderer } from '@tiptap/react'; import { STATUS_COLORS, StatusWrapper } from 'tiptap/core/wrappers/status'; @@ -7,7 +8,7 @@ type IStatusAttrs = { color?: string; text?: string; defaultShowPicker?: boolean; - createUser: string; + createUser?: IUser['id']; }; declare module '@tiptap/core' {