Skip to content

Commit 45eb72e

Browse files
Update typings to support ESM (#141)
* types: update typings for ESM * docs: fix typo * test: set typescript to ES2020 mode * test(types): add test cases for run callback with optional params * test(types): test and fix async transformer typing
1 parent 4c927c8 commit 45eb72e

File tree

5 files changed

+371
-337
lines changed

5 files changed

+371
-337
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ function base() {
127127
}
128128

129129
// Data management.
130-
// Getter / setter for processor-specific informtion.
130+
// Getter / setter for processor-specific information.
131131
function data(key, value) {
132132
if (typeof key === 'string') {
133133
// Set `key`.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@
6565
"format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix",
6666
"test-api": "node --unhandled-rejections=strict --conditions development test/index.js",
6767
"test-coverage": "c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov node --unhandled-rejections=strict --conditions development test/index.js",
68-
"xxx-test-types": "dtslint types",
69-
"test": "npm run format && npm run test-coverage"
68+
"test-types": "dtslint types",
69+
"test": "npm run format && npm run test-coverage && npm run test-types"
7070
},
7171
"prettier": {
7272
"tabWidth": 2,

0 commit comments

Comments
 (0)