mirror of https://github.com/fantasticit/think.git
tiptap: fix type
This commit is contained in:
parent
196d27d568
commit
018305c1d0
|
@ -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' {
|
||||
|
|
Loading…
Reference in New Issue