refactor: remove AnyObject type

This commit is contained in:
Philipp Kühn
2021-04-21 09:43:31 +02:00
parent d720d77e8d
commit 1c8ca95de2
64 changed files with 108 additions and 196 deletions

View File

@@ -1,11 +1,6 @@
import { TextSelection } from 'prosemirror-state'
import createDocument from '../helpers/createDocument'
import {
AnyObject,
Command,
RawCommands,
Content,
} from '../types'
import { Command, RawCommands, Content } from '../types'
declare module '@tiptap/core' {
interface Commands {
@@ -16,7 +11,7 @@ declare module '@tiptap/core' {
setContent: (
content: Content,
emitUpdate?: Boolean,
parseOptions?: AnyObject,
parseOptions?: Record<string, any>,
) => Command,
}
}