Skip to content

Commit

Permalink
fix(types): fix candlestick data type
Browse files Browse the repository at this point in the history
- Fix candlestick data type definition
- Add d3 type definition
- Remove unused script command

Fix #2422
  • Loading branch information
netil authored Nov 18, 2021
1 parent 679ce73 commit ccac60d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
"build:production:analyzer": "cross-env ANALYZER=true npm run build:production",
"build:packaged:analyzer": "cross-env ANALYZER=true npm run build:packaged",
"build:plugin": "cross-env NODE_ENV=plugin webpack && cross-env NODE_ENV=plugin MODE=min webpack && cross-env NODE_ENV=plugin MODE=pkgd webpack",
"_build:plugin": "cross-env NODE_ENV=plugin MODE=pkgd webpack",
"release": "semantic-release",
"lint": "npm run lint:types && eslint src --ext .ts",
"lint:types": "dtslint --onlyTestTsNext types",
Expand Down
7 changes: 5 additions & 2 deletions types/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@
* Copyright (c) 2017 ~ present NAVER Corp.
* billboard.js project is licensed under the MIT license
*/
import {Selection} from "d3-selection"; /* tslint:disable-line */
import {Selection} from "d3-selection";

export type PrimitiveArray = Array<string | boolean | number | Date | null>;
export type PrimitiveArray = Array<
string | boolean | number | Date | null |
{[key: string]: number} | number[]
>;
export type ArrayOrString = string[] | string;
export type d3Selection = Selection<any, any, any, any>;
export type ChartTypes = "area"
Expand Down

0 comments on commit ccac60d

Please sign in to comment.