Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: chart ref prop type fix #70

Merged
merged 1 commit into from
Aug 29, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Bar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
interface $$Props<TData = DefaultDataPoint<'bar'>, TLabel = unknown>
extends Omit<ChartBaseProps<'bar', TData, TLabel>, 'type'> {
chart: ChartJS<'bar', TData, TLabel> | null;
chart?: ChartJS<'bar', TData, TLabel> | null;
}
ChartJS.register(BarController);
Expand Down
2 changes: 1 addition & 1 deletion src/Bubble.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

interface $$Props<TData = DefaultDataPoint<'bubble'>, TLabel = unknown>
extends Omit<ChartBaseProps<'bubble', TData, TLabel>, 'type'> {
chart: ChartJS<'bubble', TData, TLabel> | null;
chart?: ChartJS<'bubble', TData, TLabel> | null;
}

ChartJS.register(BubbleController);
Expand Down
2 changes: 1 addition & 1 deletion src/Chart.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
TData = DefaultDataPoint<TType>,
TLabel = unknown
> extends ChartBaseProps<TType, TData, TLabel> {
chart: ChartJS<TType, TData, TLabel> | null;
chart?: ChartJS<TType, TData, TLabel> | null;
}
function clean(props: SvelteAllProps) {
Expand Down
2 changes: 1 addition & 1 deletion src/Doughnut.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

interface $$Props<TData = DefaultDataPoint<'doughnut'>, TLabel = unknown>
extends Omit<ChartBaseProps<'doughnut', TData, TLabel>, 'type'> {
chart: ChartJS<'doughnut', TData, TLabel> | null;
chart?: ChartJS<'doughnut', TData, TLabel> | null;
}

ChartJS.register(DoughnutController);
Expand Down
2 changes: 1 addition & 1 deletion src/Line.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
interface $$Props<TData = DefaultDataPoint<'line'>, TLabel = unknown>
extends Omit<ChartBaseProps<'line', TData, TLabel>, 'type'> {
chart: ChartJS<'line', TData, TLabel> | null;
chart?: ChartJS<'line', TData, TLabel> | null;
}
ChartJS.register(LineController);
Expand Down
2 changes: 1 addition & 1 deletion src/Pie.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
interface $$Props<TData = DefaultDataPoint<'pie'>, TLabel = unknown>
extends Omit<ChartBaseProps<'pie', TData, TLabel>, 'type'> {
chart: ChartJS<'pie', TData, TLabel> | null;
chart?: ChartJS<'pie', TData, TLabel> | null;
}
ChartJS.register(PieController);
Expand Down
2 changes: 1 addition & 1 deletion src/PolarArea.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

interface $$Props<TData = DefaultDataPoint<'polarArea'>, TLabel = unknown>
extends Omit<ChartBaseProps<'polarArea', TData, TLabel>, 'type'> {
chart: ChartJS<'polarArea', TData, TLabel> | null;
chart?: ChartJS<'polarArea', TData, TLabel> | null;
}

ChartJS.register(PolarAreaController);
Expand Down
2 changes: 1 addition & 1 deletion src/Radar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

interface $$Props<TData = DefaultDataPoint<'radar'>, TLabel = unknown>
extends Omit<ChartBaseProps<'radar', TData, TLabel>, 'type'> {
chart: ChartJS<'radar', TData, TLabel> | null;
chart?: ChartJS<'radar', TData, TLabel> | null;
}

ChartJS.register(RadarController);
Expand Down
2 changes: 1 addition & 1 deletion src/Scatter.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

interface $$Props<TData = DefaultDataPoint<'scatter'>, TLabel = unknown>
extends Omit<ChartBaseProps<'scatter', TData, TLabel>, 'type'> {
chart: ChartJS<'scatter', TData, TLabel> | null;
chart?: ChartJS<'scatter', TData, TLabel> | null;
}

ChartJS.register(ScatterController);
Expand Down