diff --git a/package.json b/package.json index e691c8c7a..a571fa8f9 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/types/types.d.ts b/types/types.d.ts index 92ff53ce7..810ac5d9c 100644 --- a/types/types.d.ts +++ b/types/types.d.ts @@ -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; +export type PrimitiveArray = Array< + string | boolean | number | Date | null | + {[key: string]: number} | number[] +>; export type ArrayOrString = string[] | string; export type d3Selection = Selection; export type ChartTypes = "area"