Skip to content

Commit

Permalink
Update typings to support ESM (#141)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
ChristianMurphy authored Jun 30, 2021
1 parent 4c927c8 commit 45eb72e
Show file tree
Hide file tree
Showing 5 changed files with 371 additions and 337 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ function base() {
}

// Data management.
// Getter / setter for processor-specific informtion.
// Getter / setter for processor-specific information.
function data(key, value) {
if (typeof key === 'string') {
// Set `key`.
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@
"format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix",
"test-api": "node --unhandled-rejections=strict --conditions development test/index.js",
"test-coverage": "c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov node --unhandled-rejections=strict --conditions development test/index.js",
"xxx-test-types": "dtslint types",
"test": "npm run format && npm run test-coverage"
"test-types": "dtslint types",
"test": "npm run format && npm run test-coverage && npm run test-types"
},
"prettier": {
"tabWidth": 2,
Expand Down
Loading

0 comments on commit 45eb72e

Please sign in to comment.