Skip to content

Commit

Permalink
chore: include missing typescript types/interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
mauriciopoppe committed Dec 16, 2023
1 parent c5eeab0 commit 252c88a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/globals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { hsl as d3Hsl, HSLColor } from 'd3-color'

import { GraphTypeBuilder } from './graph-types/types'

type TGlobals = {
export type TGlobals = {
COLORS: Array<HSLColor>
DEFAULT_WIDTH: number
DEFAULT_HEIGHT: number
Expand Down
6 changes: 4 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import './polyfills'

import { FunctionPlotOptions } from './types'
import { Chart } from './chart'
import { Chart, ChartMeta, ChartMetaMargin } from './chart'

import globals, { registerGraphType } from './globals'
import { polyline, interval, scatter, text } from './graph-types'
Expand Down Expand Up @@ -39,12 +39,14 @@ functionPlot.$eval = $eval
functionPlot.graphTypes = { interval, polyline, scatter }

export * from './types'
export { Chart }
export { Chart, ChartMeta, ChartMetaMargin }
export { registerGraphType }
export { builtIn as EvalBuiltIn, interval as EvalInterval } from './helpers/eval'
export { TGlobals } from './globals'
export {
interval as GraphTypeInterval,
polyline as GraphTypePolyline,
scatter as GraphTypeScatter
} from './graph-types'
export { GraphTypePlotter, GraphTypeBuilder } from './graph-types/types'
export * from './helpers'

0 comments on commit 252c88a

Please sign in to comment.