File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -142,41 +142,41 @@ Patches represent changes. They come with three properties:
142
142
143
143
#### ` remove `
144
144
145
- * ` type ` : ` 'remove' `
145
+ * ` type ` ( ` 'remove' ` )
146
146
* ` left ` ([ ` Node ` ] [ node ] ) — Left node
147
- * ` right ` : ` null `
147
+ * ` right ` ( ` null ` )
148
148
149
149
#### ` insert `
150
150
151
- * ` type ` : ` 'insert' `
152
- * ` left ` : ` null `
151
+ * ` type ` ( ` 'insert' ` )
152
+ * ` left ` ( ` null ` )
153
153
* ` right ` ([ ` Node ` ] [ node ] ) — Right node
154
154
155
155
#### ` replace `
156
156
157
- * ` type ` : ` 'node' `
157
+ * ` type ` ( ` 'node' ` )
158
158
* ` left ` ([ ` Node ` ] [ node ] ) — Left node
159
159
* ` right ` ([ ` Node ` ] [ node ] ) — Right node
160
160
161
161
#### ` props `
162
162
163
- * ` type ` : ` 'props' `
163
+ * ` type ` ( ` 'props' ` )
164
164
* ` left ` ([ ` Node ` ] [ node ] ) — Left node
165
- * ` right ` : [ ` PropsDiff ` ] [ propsdiff ]
165
+ * ` right ` ( [ ` PropsDiff ` ] [ propsdiff ] )
166
166
167
167
#### ` text `
168
168
169
- * ` type ` : ` 'text' `
169
+ * ` type ` ( ` 'text' ` )
170
170
* ` left ` ([ ` Node ` ] [ node ] ) — Left node
171
171
* ` right ` ([ ` Node ` ] [ node ] ) — Right node
172
172
173
173
#### ` order `
174
174
175
- * ` type ` : ` 'order' `
175
+ * ` type ` ( ` 'order' ` )
176
176
* ` left ` ([ ` Node ` ] [ node ] ) — Parent node
177
177
* ` right ` ([ ` MoveDiff ` ] [ movediff ] ) — Reorder
178
178
179
- ## ` PropsDiff `
179
+ ### ` PropsDiff `
180
180
181
181
` PropsDiff ` is an object mapping keys to new values.
182
182
@@ -187,7 +187,7 @@ In the diff:
187
187
value is set to a ` PropsDiff ` of both values.
188
188
* In all other cases, the key’s value is set to the new value.
189
189
190
- ## ` MoveDiff `
190
+ ### ` MoveDiff `
191
191
192
192
` MoveDiff ` is an object with two arrays: ` removes ` and ` inserts ` .
193
193
They always have equal lengths, and are never both empty. Objects in
You can’t perform that action at this time.
0 commit comments