From 20a78412310c439bf33af23e78f76840b3ad047e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20St=C3=BCrmer?= Date: Wed, 14 Feb 2018 18:23:39 +0100 Subject: [PATCH 1/2] Add typescript definitions for `` --- src/components/health/index.d.ts | 18 ++++++++++++++++++ src/components/index.d.ts | 1 + 2 files changed, 19 insertions(+) create mode 100644 src/components/health/index.d.ts diff --git a/src/components/health/index.d.ts b/src/components/health/index.d.ts new file mode 100644 index 00000000000..06133d3c867 --- /dev/null +++ b/src/components/health/index.d.ts @@ -0,0 +1,18 @@ +/// + +import { SFC, HTMLAttributes } from 'react'; + +declare module '@elastic/eui' { + /** + * health type defs + * + * @see './health.js' + */ + + type EuiHealthProps = CommonProps & + HTMLAttributes & { + color: IconColor; + }; + + export const EuiHealth: SFC; +} diff --git a/src/components/index.d.ts b/src/components/index.d.ts index 709b3b456cf..796d8927f13 100644 --- a/src/components/index.d.ts +++ b/src/components/index.d.ts @@ -2,6 +2,7 @@ /// /// /// +/// /// /// /// From 21e7d9361571aa7adff4b85b587837f6af967aa8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20St=C3=BCrmer?= Date: Wed, 14 Feb 2018 18:31:41 +0100 Subject: [PATCH 2/2] Update the changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4d8f2ed4f86..bed11a683a8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ - Add styles for `readOnly` states of form controls. ([#391](https://github.com/elastic/eui/pull/391)) - Added importAction and exportAction icons ([#394](https://github.com/elastic/eui/pull/394)) - Added `EuiCard` for UI patterns that need an icon/image, title and description with some sort of action. ([#380](https://github.com/elastic/eui/pull/380)) +- Add TypeScript definitions for the `` component. ([#403](https://github.com/elastic/eui/pull/403)) **Bug fixes**