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