mirror of
https://github.com/fantasticit/think.git
synced 2026-10-30 22:56:06 +08:00
tiptap: fix type
This commit is contained in:
@@ -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' {
|
||||
|
||||
@@ -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' {
|
||||
|
||||
@@ -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' {
|
||||
|
||||
Reference in New Issue
Block a user