From 5aa0c1c3141e91e4279e9be865c2c01b501caf3d Mon Sep 17 00:00:00 2001 From: Trent Houliston Date: Sun, 14 May 2017 15:31:50 +1000 Subject: [PATCH] Add types to package.json and fix bug in smoothie.d.ts --- package.json | 1 + smoothie.d.ts | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 573b1c8..5b7e35f 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,7 @@ "version": "1.29.0", "description": "Smoothie Charts: smooooooth JavaScript charts for realtime streaming data", "main": "./smoothie.js", + "types": "./smoothie.d.ts", "directories": { "doc": "docs", "example": "examples", diff --git a/smoothie.d.ts b/smoothie.d.ts index 33ae569..e63c50d 100644 --- a/smoothie.d.ts +++ b/smoothie.d.ts @@ -129,8 +129,8 @@ export interface IChartOptions { labels?: ILabelOptions; - /** Allows the chart to stretch according to its containers and layout settings. Default is false, for backwards compatibility. - responsive: boolean; + /** Allows the chart to stretch according to its containers and layout settings. Default is false, for backwards compatibility. */ + responsive?: boolean; } /**