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** 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 @@ /// /// /// +/// /// /// ///