File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 33 * @typedef {import('nlcst').Content } Content
44 * @typedef {Root|Content } Node
55 *
6- * @typedef { Object } NormalizeOptions
6+ * @typedef Options
77 * @property {boolean } [allowDashes=false]
88 * @property {boolean } [allowApostrophes=false]
9+ *
10+ * @typedef {Options } NormalizeOptions
11+ * Deprecated form of `Options`.
912 */
1013
1114import { toString } from 'nlcst-to-string'
1215
1316/**
14- * @param {string|Node|Array. <Content> } node
17+ * @param {string|Node|Array<Content> } node
1518 * @param {NormalizeOptions } [options={}]
1619 */
1720export function normalize ( node , options ) {
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ There is no default export.
4949
5050### ` normalize(value[, options]) `
5151
52- Normalize a word (` string ` , [ ` Node ` ] [ node ] , ` Array. <Node> ` ) for easier
52+ Normalize a word (` string ` , [ ` Node ` ] [ node ] , ` Array<Node> ` ) for easier
5353comparison.
5454Always normalizes smart apostrophes (` ’ ` ) to straight apostrophes (` ' ` ) and
5555lowercases alphabetical characters (` [A-Z] ` ).
You can’t perform that action at this time.
0 commit comments