Skip to content

Commit 6ff7a64

Browse files
committed
Refactor code-style
1 parent 253eb60 commit 6ff7a64

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

index.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,18 @@
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

1114
import {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
*/
1720
export function normalize(node, options) {

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
5353
comparison.
5454
Always normalizes smart apostrophes (``) to straight apostrophes (`'`) and
5555
lowercases alphabetical characters (`[A-Z]`).

0 commit comments

Comments
 (0)