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,5 +1,4 @@
import React from 'react'
import { AnyObject } from '@tiptap/core'
import { Editor } from './Editor'
function isClassComponent(Component: any) {
@@ -12,7 +11,7 @@ function isClassComponent(Component: any) {
export interface ReactRendererOptions {
editor: Editor,
props?: AnyObject,
props?: Record<string, any>,
as?: string,
}
@@ -25,7 +24,7 @@ export class ReactRenderer {
element: Element
props: AnyObject
props: Record<string, any>
reactElement: React.ReactNode
@@ -63,7 +62,7 @@ export class ReactRenderer {
}
}
updateProps(props: AnyObject = {}): void {
updateProps(props: Record<string, any> = {}): void {
this.props = {
...this.props,
...props,