Skip to content

Commit

Permalink
TypeScript declarations! (#1320)
Browse files Browse the repository at this point in the history
* remove typescript machinery

* checkpoint typescript declarations

* restore mocha and eslint for typescript

* tweak package.json

* port tests to TypeScript

* fix plural inconsistency

* more better types

* allow empty interfaces, for now

* fix plural test

* remove jsdoc annotations

* fix test names, again

* export all types

* remove build

* more better types

* add missing exports

* RenderFunction, strict

* more better types

* more better transform types

* more better types

* more better types

* still more better types

* quantize, quantile scale options

* nullish markish

* more better types

* even more better types

* avoid name conflicts with types

* still more better types

* unstrict

* allow cased color scheme names

* more better types

* more documentation; ScaleDefaults

* turn off data type checking

* fix remaining TypeScript errors; enable tsc

* auto types

* stricter lint

* better line, area options, and more

* more documentation

* linearRegression[XY] dense interval

* stricter percentile

* better bar, rect intervals

* more percentiles

* more interval types

* tree, valueof, column

* style, className

* comment re. omit interval

* autocomplete stack order

* z for stack, map, select
  • Loading branch information
mbostock authored Mar 13, 2023
1 parent 5830098 commit 6b87468
Show file tree
Hide file tree
Showing 446 changed files with 3,385 additions and 3,842 deletions.
1 change: 1 addition & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"no-sparse-arrays": 0,
"no-unexpected-multiline": 0,
"@typescript-eslint/no-empty-function": 0,
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/no-this-alias": 0,
"@typescript-eslint/no-unused-vars": ["error", {"ignoreRestSiblings": true}]
}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
echo ::add-matcher::.github/eslint.json
yarn run eslint src test --format=compact
- run: yarn run prettier --check src test
- run: yarn test
- run: yarn test:mocha
- name: Test artifacts
uses: actions/upload-artifact@v3
if: failure()
Expand Down
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
.DS_Store
build/
dist/
types/
node_modules/
test/output/*-changed.svg
test/output/*-changed.html
tsconfig.tsbuildinfo
yarn-error.log
Loading

0 comments on commit 6b87468

Please sign in to comment.