mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-06 15:26:34 +02:00
Make Range.transform options optional (#3794)
This commit is contained in:
@@ -181,7 +181,9 @@ export const Range = {
|
|||||||
transform(
|
transform(
|
||||||
range: Range,
|
range: Range,
|
||||||
op: Operation,
|
op: Operation,
|
||||||
options: { affinity: 'forward' | 'backward' | 'outward' | 'inward' | null }
|
options: {
|
||||||
|
affinity?: 'forward' | 'backward' | 'outward' | 'inward' | null
|
||||||
|
} = {}
|
||||||
): Range | null {
|
): Range | null {
|
||||||
const { affinity = 'inward' } = options
|
const { affinity = 'inward' } = options
|
||||||
let affinityAnchor: 'forward' | 'backward' | null
|
let affinityAnchor: 'forward' | 'backward' | null
|
||||||
|
Reference in New Issue
Block a user