Skip to content

Commit be42365

Browse files
committed
Update signatures
1 parent 30fdfb3 commit be42365

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

readme.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -142,41 +142,41 @@ Patches represent changes. They come with three properties:
142142

143143
#### `remove`
144144

145-
* `type`: `'remove'`
145+
* `type` (`'remove'`)
146146
* `left` ([`Node`][node]) — Left node
147-
* `right`: `null`
147+
* `right` (`null`)
148148

149149
#### `insert`
150150

151-
* `type`: `'insert'`
152-
* `left`: `null`
151+
* `type` (`'insert'`)
152+
* `left` (`null`)
153153
* `right` ([`Node`][node]) — Right node
154154

155155
#### `replace`
156156

157-
* `type`: `'node'`
157+
* `type` (`'node'`)
158158
* `left` ([`Node`][node]) — Left node
159159
* `right` ([`Node`][node]) — Right node
160160

161161
#### `props`
162162

163-
* `type`: `'props'`
163+
* `type` (`'props'`)
164164
* `left` ([`Node`][node]) — Left node
165-
* `right`: [`PropsDiff`][propsdiff]
165+
* `right` ([`PropsDiff`][propsdiff])
166166

167167
#### `text`
168168

169-
* `type`: `'text'`
169+
* `type` (`'text'`)
170170
* `left` ([`Node`][node]) — Left node
171171
* `right` ([`Node`][node]) — Right node
172172

173173
#### `order`
174174

175-
* `type`: `'order'`
175+
* `type` (`'order'`)
176176
* `left` ([`Node`][node]) — Parent node
177177
* `right` ([`MoveDiff`][movediff]) — Reorder
178178

179-
## `PropsDiff`
179+
### `PropsDiff`
180180

181181
`PropsDiff` is an object mapping keys to new values.
182182

@@ -187,7 +187,7 @@ In the diff:
187187
value is set to a `PropsDiff` of both values.
188188
* In all other cases, the key’s value is set to the new value.
189189

190-
## `MoveDiff`
190+
### `MoveDiff`
191191

192192
`MoveDiff` is an object with two arrays: `removes` and `inserts`.
193193
They always have equal lengths, and are never both empty. Objects in

0 commit comments

Comments
 (0)