refactoring
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user