refactoring

This commit is contained in:
Philipp Kühn
2021-01-19 10:09:32 +01:00
parent aaa0832883
commit c13d65c842
7 changed files with 46 additions and 22 deletions

View File

@@ -1,11 +1,6 @@
import { NodeType } from 'prosemirror-model'
import getNodeType from '../helpers/getNodeType'
import { Command } from '../types'
export type Range = {
from: number,
to: number,
}
import { Command, Range } from '../types'
/**
* Replaces text with a node within a range.

View File

@@ -130,3 +130,8 @@ export type ChainedCommands = {
export type CanCommands = SingleCommands & { chain: () => ChainedCommands }
export type FocusPosition = 'start' | 'end' | number | boolean | null
export type Range = {
from: number,
to: number,
}