Skip to content

Commit aaac9f0

Browse files
committed
remove unnecessary types
1 parent 55d7eb4 commit aaac9f0

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -719,7 +719,7 @@ export class Chart extends EventEmitter.EventEmitter {
719719
}
720720
}
721721

722-
function functionPlot (options: FunctionPlotOptions = {id: null, target: null}) {
722+
function functionPlot (options: FunctionPlotOptions = {target: null}) {
723723
options.data = options.data || []
724724
let instance = Chart.cache[options.id]
725725
if (!instance) {

src/types.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export interface FunctionPlotDatumSecant {
9191
* Additional information available during function evaluation
9292
*/
9393
scope?: FunctionPlotDatumScope
94-
$$mouseListener: any
94+
$$mouseListener?: any
9595
}
9696

9797
export interface FunctionPlotDatumDerivative {
@@ -117,7 +117,7 @@ export interface FunctionPlotDatumDerivative {
117117
* Additional information available during function evaluation
118118
*/
119119
scope?: FunctionPlotDatumScope
120-
$$mouseListener: any
120+
$$mouseListener?: any
121121
}
122122

123123
export interface FunctionPlotDatum {
@@ -270,9 +270,10 @@ export interface FunctionPlotAnnotation {
270270

271271
export interface FunctionPlotOptions {
272272
/**
273-
* For internal usage, id
273+
* @private
274+
* For internal usage
274275
*/
275-
id: string
276+
id?: string
276277

277278
/**
278279
* A css selector or DOM node of the parent element that will contain the graph

0 commit comments

Comments
 (0)