Skip to content

Commit

Permalink
fix: Make all props optional
Browse files Browse the repository at this point in the history
  • Loading branch information
mikaelkaron committed Feb 28, 2019
1 parent b1179a4 commit 756dc92
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions src/components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,23 +25,23 @@ export namespace Components {
/**
* ApexChart height
*/
'height': ApexChartHeight;
'height'?: ApexChartHeight;
/**
* ApexCharts options
*/
'options': ApexOptions;
'options'?: ApexOptions;
/**
* ApexCharts series
*/
'series': ApexOptionsSeries;
'series'?: ApexOptionsSeries;
/**
* ApexCharts type
*/
'type': ApexChartType;
'type'?: ApexChartType;
/**
* ApexChart width
*/
'width': ApexChartWidth;
'width'?: ApexChartWidth;
}
interface ApexChartAttributes extends StencilHTMLAttributes {
/**
Expand Down
10 changes: 5 additions & 5 deletions src/components/apex-chart/apex-chart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,25 +44,25 @@ export class chart {
* ApexCharts type
* @see https://apexcharts.com/docs/options/chart/type/
*/
@Prop() type: ApexChartType;
@Prop() type?: ApexChartType;

/**
* ApexChart width
* @see https://apexcharts.com/docs/options/chart/width/
*/
@Prop() width: ApexChartWidth;
@Prop() width?: ApexChartWidth;

/**
* ApexChart height
* @see https://apexcharts.com/docs/options/chart/height/
*/
@Prop() height: ApexChartHeight;
@Prop() height?: ApexChartHeight;

/**
* ApexCharts options
* @see https://apexcharts.com/docs/options/
*/
@Prop({ mutable: true }) options: ApexOptions;
@Prop({ mutable: true }) options?: ApexOptions;

@Watch('options')
optionsChanged(options) {
Expand All @@ -77,7 +77,7 @@ export class chart {
* ApexCharts series
* @see https://apexcharts.com/docs/options/series/
*/
@Prop({ mutable: true }) series: ApexOptionsSeries;
@Prop({ mutable: true }) series?: ApexOptionsSeries;

@Watch('series')
seriesChanged(series) {
Expand Down

0 comments on commit 756dc92

Please sign in to comment.