Skip to content

Commit 6b87468

Browse files
authored
TypeScript declarations! (#1320)
* 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
1 parent 5830098 commit 6b87468

File tree

446 files changed

+3385
-3842
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

446 files changed

+3385
-3842
lines changed

.eslintrc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"no-sparse-arrays": 0,
1414
"no-unexpected-multiline": 0,
1515
"@typescript-eslint/no-empty-function": 0,
16+
"@typescript-eslint/no-explicit-any": 0,
1617
"@typescript-eslint/no-this-alias": 0,
1718
"@typescript-eslint/no-unused-vars": ["error", {"ignoreRestSiblings": true}]
1819
}

.github/workflows/node.js.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
echo ::add-matcher::.github/eslint.json
2828
yarn run eslint src test --format=compact
2929
- run: yarn run prettier --check src test
30-
- run: yarn test
30+
- run: yarn test:mocha
3131
- name: Test artifacts
3232
uses: actions/upload-artifact@v3
3333
if: failure()

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
.DS_Store
2-
build/
32
dist/
4-
types/
53
node_modules/
64
test/output/*-changed.svg
75
test/output/*-changed.html
8-
tsconfig.tsbuildinfo
96
yarn-error.log

0 commit comments

Comments
 (0)