refactoring

This commit is contained in:
Philipp Kühn
2021-03-16 22:22:13 +01:00
parent a76de1ab6d
commit 49fcf829f3
9 changed files with 91 additions and 55 deletions

View File

@@ -112,6 +112,16 @@ export type ValuesOf<T> = T[keyof T];
export type KeysWithTypeOf<T, Type> = ({[P in keyof T]: T[P] extends Type ? P : never })[keyof T]
export type NodeViewProps = {
editor: Editor,
node: ProseMirrorNode,
decorations: Decoration[],
selected: boolean,
extension: Node,
getPos: () => number,
updateAttributes: (attributes: AnyObject) => void,
}
export type NodeViewRendererProps = {
editor: Editor,
node: ProseMirrorNode,