This repository was archived by the owner on Aug 9, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 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" : {
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments