diff --git a/types/react-modal/index.d.ts b/types/react-modal/index.d.ts index fe1a2fdf23..f7b452d9e0 100644 --- a/types/react-modal/index.d.ts +++ b/types/react-modal/index.d.ts @@ -8,6 +8,7 @@ // Peter Blazejewicz , // Justin Powell // Juwan Wheatley +// Nitzan Mousan // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.8 @@ -125,6 +126,9 @@ declare namespace ReactModal { /* String value of data-test-id attibute to be applied to to the modal content. */ testId?: string; + + /* String value of an id attribute to be applied to the modal content */ + id?: string; } } diff --git a/types/react-modal/react-modal-tests.tsx b/types/react-modal/react-modal-tests.tsx index 2820234ef1..9911f73f3d 100644 --- a/types/react-modal/react-modal-tests.tsx +++ b/types/react-modal/react-modal-tests.tsx @@ -64,6 +64,7 @@ class ExampleOfUsingReactModal extends React.Component { }; return (