Skip to content

Commit

Permalink
[EuiRange] Add missing TS definitions (#2072)
Browse files Browse the repository at this point in the history
* Add missing TS definitions for EuiRange

* Update CHANGELOG.md
  • Loading branch information
sulemanof authored Jun 21, 2019
1 parent a11b00b commit bcf5140
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
- Added `toSentenceCase` string service ([#2049](https://github.com/elastic/eui/pull/2049))
- Pass `EuiSuperSelect`'s `popoverClassName` to the popover's panel ([#2068](https://github.com/elastic/eui/pull/2068))
- Added `editorItemAlignLeft`, `editorItemAlignCenter`, `editorItemRight`, `editorItemAlignTop`, `editorItemAlignMiddle`, `editorItemAlignBottom`, `editorDistributeHorizontal`, `editorDistributeVertical`, `editorPositionTopLeft`, `editorPositionTopRight`, `editorPositionBottomRight`, and `editorPositionBottomLeft` glyphs to `EuiIcon` ([2070](https://github.com/elastic/eui/pull/2070))
- Added missing TS definitions for `EuiRange` ([#2072](https://github.com/elastic/eui/pull/2072))

**Bug fixes**

Expand Down
4 changes: 3 additions & 1 deletion src/components/form/range/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { CommonProps, Omit } from '../../common';

import { FunctionComponent, InputHTMLAttributes } from 'react';
import { ReactNode, FunctionComponent, InputHTMLAttributes } from 'react';

declare module '@elastic/eui' {
export type EuiRangeLevelColor = 'primary' | 'success' | 'warning' | 'danger';
Expand Down Expand Up @@ -29,6 +29,8 @@ declare module '@elastic/eui' {
showTicks?: boolean;
showValue?: boolean;
tickInterval?: number;
valueAppend?: ReactNode;
valuePrepend?: ReactNode;
}

export const EuiRange: FunctionComponent<
Expand Down

0 comments on commit bcf5140

Please sign in to comment.