@@ -15,12 +15,12 @@ import { getCommentDelimitedContent } from './serializer';
1515import { attr , prop , html , text , query , node , children } from './matchers' ;
1616
1717/**
18- * Returns value coerced to the specified JSON schema type string
18+ * Returns value coerced to the specified JSON schema type string.
1919 *
2020 * @see http://json-schema.org/latest/json-schema-validation.html#rfc.section.6.25
2121 *
22- * @param {* } value Original value
23- * @param { String } type Type to coerce
22+ * @param {* } value Original value.
23+ * @param { string } type Type to coerce.
2424 *
2525 * @returns {* } Coerced value.
2626 */
@@ -54,11 +54,11 @@ export function asType( value, type ) {
5454}
5555
5656/**
57- * Returns an hpq matcher given a source object
57+ * Returns an hpq matcher given a source object.
5858 *
59- * @param {Object } sourceConfig Attribute Source object
59+ * @param {Object } sourceConfig Attribute Source object.
6060 *
61- * @returns {Function } hpq Matcher.
61+ * @returns {Function } A hpq Matcher.
6262 */
6363export function matcherFromSource ( sourceConfig ) {
6464 switch ( sourceConfig . source ) {
@@ -84,13 +84,14 @@ export function matcherFromSource( sourceConfig ) {
8484}
8585
8686/**
87- * Given an attribute key, an attribute's schema, a block's raw content and the commentAttributes
88- * returns the attribute value depending on its source definition of the given attribute key
87+ * Given an attribute key, an attribute's schema, a block's raw content and the
88+ * commentAttributes returns the attribute value depending on its source
89+ * definition of the given attribute key.
8990 *
90- * @param {string } attributeKey Attribute key
91- * @param {Object } attributeSchema Attribute's schema
92- * @param {string } innerHTML Block's raw content
93- * @param {Object } commentAttributes Block's comment attributes
91+ * @param {string } attributeKey Attribute key.
92+ * @param {Object } attributeSchema Attribute's schema.
93+ * @param {string } innerHTML Block's raw content.
94+ * @param {Object } commentAttributes Block's comment attributes.
9495 *
9596 * @returns {* } Attribute value.
9697 */
@@ -118,9 +119,9 @@ export function getBlockAttribute( attributeKey, attributeSchema, innerHTML, com
118119/**
119120 * Returns the block attributes of a registered block node given its type.
120121 *
121- * @param {?Object } blockType Block type
122- * @param {string } innerHTML Raw block content
123- * @param {?Object } attributes Known block attributes (from delimiters)
122+ * @param {?Object } blockType Block type.
123+ * @param {string } innerHTML Raw block content.
124+ * @param {?Object } attributes Known block attributes (from delimiters).
124125 *
125126 * @returns {Object } All block attributes.
126127 */
@@ -133,11 +134,12 @@ export function getBlockAttributes( blockType, innerHTML, attributes ) {
133134}
134135
135136/**
136- * Attempt to parse the innerHTML using using a supplied `deprecated` definition.
137+ * Attempt to parse the innerHTML using using a supplied `deprecated`
138+ * definition.
137139 *
138- * @param {?Object } blockType Block type
139- * @param {string } innerHTML Raw block content
140- * @param {?Object } attributes Known block attributes (from delimiters)
140+ * @param {?Object } blockType Block type.
141+ * @param {string } innerHTML Raw block content.
142+ * @param {?Object } attributes Known block attributes (from delimiters).
141143 *
142144 * @returns {Object } Block attributes.
143145 */
@@ -162,9 +164,9 @@ export function getAttributesFromDeprecatedVersion( blockType, innerHTML, attrib
162164/**
163165 * Creates a block with fallback to the unknown type handler.
164166 *
165- * @param {?String } name Block type name
166- * @param { String } innerHTML Raw block content
167- * @param {?Object } attributes Attributes obtained from block delimiters
167+ * @param {?String } name Block type name.
168+ * @param { string } innerHTML Raw block content.
169+ * @param {?Object } attributes Attributes obtained from block delimiters.
168170 *
169171 * @returns {?Object } An initialized block object (if possible).
170172 */
@@ -232,7 +234,7 @@ export function createBlockWithFallback( name, innerHTML, attributes ) {
232234/**
233235 * Parses the post content with a PegJS grammar and returns a list of blocks.
234236 *
235- * @param { String } content The post content
237+ * @param { string } content The post content.
236238 *
237239 * @returns {Array } Block list.
238240 */
0 commit comments