@@ -81,7 +81,7 @@ declare namespace Node {
8181 }
8282
8383 /**
84- * NodeProps represents an interface for an object received
84+ * Interface represents an interface for an object received
8585 * as parameter by Node class constructor.
8686 */
8787 export interface NodeProps {
@@ -124,7 +124,7 @@ declare namespace Node {
124124 */
125125declare abstract class Node_ {
126126 /**
127- * The property `type` represents type of a node in
127+ * It represents type of a node in
128128 * an abstract syntax tree.
129129 *
130130 * A type of node helps in identification of a node
@@ -142,8 +142,7 @@ declare abstract class Node_ {
142142 type : string
143143
144144 /**
145- * The property `parent` represents parent of the
146- * current node.
145+ * It represents parent of the current node.
147146 *
148147 * ```js
149148 * console.log(root.nodes[0].parent === root) //=> true
@@ -152,9 +151,8 @@ declare abstract class Node_ {
152151 parent : Document | Container | undefined
153152
154153 /**
155- * The property `source` represents information related
156- * to origin of a node and is required for generating
157- * source maps.
154+ * It represents information related to origin of a node and is required
155+ * for generating source maps.
158156 *
159157 * The nodes that are created manually using the public APIs
160158 * provided by PostCSS will have `source` undefined and
@@ -198,8 +196,8 @@ declare abstract class Node_ {
198196 source ?: Node . Source
199197
200198 /**
201- * The property `raws` represents unnecessary whitespace
202- * and characters present in the css source code.
199+ * It represents unnecessary whitespace and characters present
200+ * in the css source code.
203201 *
204202 * Information to generate byte-to-byte equal node string as it was
205203 * in the origin input.
@@ -236,9 +234,8 @@ declare abstract class Node_ {
236234 constructor ( defaults ?: object )
237235
238236 /**
239- * The Node.error method creates an instance of the
240- * class `CssSyntaxError` and parameters passed to
241- * this method are assigned to the error instance.
237+ * It creates an instance of the class `CssSyntaxError` and parameters passed
238+ * to this method are assigned to the error instance.
242239 *
243240 * The error instance will have description for the
244241 * error, original position of the node in the
@@ -273,8 +270,8 @@ declare abstract class Node_ {
273270 error ( message : string , options ?: Node . NodeErrorOptions ) : CssSyntaxError
274271
275272 /**
276- * The `warn` method is a wrapper for Result#warn,
277- * providing convenient way of generating warnings.
273+ * It is a wrapper for { @link Result#warn}, providing convenient
274+ * way of generating warnings.
278275 *
279276 * ```js
280277 * Declaration: {
@@ -293,8 +290,7 @@ declare abstract class Node_ {
293290 warn ( result : Result , message : string , options ?: WarningOptions ) : Warning
294291
295292 /**
296- * The `remove` method removes the node from its parent
297- * and deletes its parent property.
293+ * It removes the node from its parent and deletes its parent property.
298294 *
299295 * ```js
300296 * if (decl.prop.match(/^-webkit-/)) {
@@ -307,8 +303,7 @@ declare abstract class Node_ {
307303 remove ( ) : this
308304
309305 /**
310- * The `toString` method compiles the node to
311- * browser readable cascading style sheets string
306+ * It compiles the node to browser readable cascading style sheets string
312307 * depending on it's type.
313308 *
314309 * ```js
@@ -321,8 +316,7 @@ declare abstract class Node_ {
321316 toString ( stringifier ?: Stringifier | Syntax ) : string
322317
323318 /**
324- * The `assign` method assigns properties to an existing
325- * node instance.
319+ * It assigns properties to an existing node instance.
326320 *
327321 * ```js
328322 * decl.assign({ prop: 'word-wrap', value: 'break-word' })
@@ -335,9 +329,8 @@ declare abstract class Node_ {
335329 assign ( overrides : object ) : this
336330
337331 /**
338- * The `clone` method creates clone of an existing node,
339- * which includes all the properties and their values, that
340- * includes `raws` but not `type`.
332+ * It creates clone of an existing node, which includes all the properties
333+ * and their values, that includes `raws` but not `type`.
341334 *
342335 * ```js
343336 * decl.raws.before //=> "\n "
0 commit comments