Skip to content

Commit 252c88a

Browse files
committed
chore: include missing typescript types/interfaces
1 parent c5eeab0 commit 252c88a

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/globals.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { hsl as d3Hsl, HSLColor } from 'd3-color'
22

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

5-
type TGlobals = {
5+
export type TGlobals = {
66
COLORS: Array<HSLColor>
77
DEFAULT_WIDTH: number
88
DEFAULT_HEIGHT: number

src/index.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import './polyfills'
22

33
import { FunctionPlotOptions } from './types'
4-
import { Chart } from './chart'
4+
import { Chart, ChartMeta, ChartMetaMargin } from './chart'
55

66
import globals, { registerGraphType } from './globals'
77
import { polyline, interval, scatter, text } from './graph-types'
@@ -39,12 +39,14 @@ functionPlot.$eval = $eval
3939
functionPlot.graphTypes = { interval, polyline, scatter }
4040

4141
export * from './types'
42-
export { Chart }
42+
export { Chart, ChartMeta, ChartMetaMargin }
4343
export { registerGraphType }
4444
export { builtIn as EvalBuiltIn, interval as EvalInterval } from './helpers/eval'
45+
export { TGlobals } from './globals'
4546
export {
4647
interval as GraphTypeInterval,
4748
polyline as GraphTypePolyline,
4849
scatter as GraphTypeScatter
4950
} from './graph-types'
51+
export { GraphTypePlotter, GraphTypeBuilder } from './graph-types/types'
5052
export * from './helpers'

0 commit comments

Comments
 (0)