Skip to content

Commit

Permalink
Adds TypeScript definitions for EuiFieldPassword (#1255)
Browse files Browse the repository at this point in the history
* Added TypeScript definitions for EuiFieldPassword

* Update form TS defs manifest

* Update src/components/form/field_password/index.d.ts

Co-Authored-By: zumwalt <[email protected]>
  • Loading branch information
zumwalt and zumwalt authored Oct 23, 2018
1 parent 0915680 commit 5ad3f5f
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

No public interface changes since `4.6.0`.

- Added TypeScript definitions for `EuiFieldPassword`. ([#1255](https://github.com/elastic/eui/pull/1255))

## [`4.6.0`](https://github.com/elastic/eui/tree/v4.6.0)

- Increased default font size of tabs in K6 theme ([#1244](https://github.com/elastic/eui/pull/1244))
Expand Down
22 changes: 22 additions & 0 deletions src/components/form/field_password/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/// <reference path="../../common.d.ts" />

import { SFC, InputHTMLAttributes, Ref } from 'react';

declare module '@elastic/eui' {

/**
* password field type defs
*
* @see './field_password.js'
*/
export interface EuiFieldPasswordProps {
isInvalid?: boolean;
inputRef?: Ref<HTMLInputElement>;
fullWidth?: boolean;
isLoading?: boolean;
}

export const EuiFieldPassword: SFC<
CommonProps & InputHTMLAttributes<HTMLInputElement> & EuiFieldPasswordProps
>;
}
1 change: 1 addition & 0 deletions src/components/form/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/// <reference path="../common.d.ts" />
/// <reference path="./checkbox/index.d.ts" />
/// <reference path="./field_number/index.d.ts" />
/// <reference path="./field_password/index.d.ts" />
/// <reference path="./field_search/index.d.ts" />
/// <reference path="./field_text/index.d.ts" />
/// <reference path="./form_help_text/index.d.ts" />
Expand Down

0 comments on commit 5ad3f5f

Please sign in to comment.