Skip to content
This repository was archived by the owner on Aug 9, 2023. It is now read-only.

Commit 340007a

Browse files
committed
Refactor code-style
1 parent bfb9725 commit 340007a

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@
7878
"prepack": "npm run build && npm run format",
7979
"build": "rimraf \"*.d.ts\" && tsc && type-coverage",
8080
"format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix",
81-
"test-api": "node test.js",
82-
"test-coverage": "c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov node test.js",
81+
"test-api": "node --conditions development test.js",
82+
"test-coverage": "c8 --check-coverage --100 --reporter lcov npm run test-api",
8383
"test": "npm run build && npm run format && npm run test-coverage"
8484
},
8585
"prettier": {

readme.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ Transform a [**hast**][hast] [*tree*][tree] to something else through a
8585

8686
###### Returns
8787

88-
`*` — Anything returned by invoking `h()`.
88+
`*` — Anything returned by calling `h()`.
8989

9090
### `function h(name, attrs, children)`
9191

@@ -99,9 +99,9 @@ Create an [*element*][element] from the given values.
9999
###### Parameters
100100

101101
* `name` (`string`) — Tag-name of element to create
102-
* `attrs` (`Object.<string>`) — Attributes to set
103-
* `children` (`Array.<* | string>`) — List of children (results of previously
104-
invoking `h()`)
102+
* `attrs` (`Record<string, string>`) — Attributes to set
103+
* `children` (`Array<any>`) — List of children (results of previously
104+
called `h()`)
105105

106106
###### Returns
107107

0 commit comments

Comments
 (0)