[react-stripe-elements] - allow id prop to be passed to *Element components.

This commit is contained in:
Thomas Chia
2018-03-03 16:55:29 +08:00
parent 60946e0b07
commit 37d658df18

View File

@@ -1,9 +1,10 @@
// Type definitions for react-stripe-elements 1.0
// Type definitions for react-stripe-elements 1.1
// Project: https://github.com/stripe/react-stripe-elements#readme
// Definitions by: dan-j <https://github.com/dan-j>
// Santiago Doldan <https://github.com/santiagodoldan>
// sonnysangha <https://github.com/sonnysangha>
// Andrew Goh Yisheng <https://github.com/9y5>
// Thomas Chia <https://github.com/thchia>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.6
@@ -42,6 +43,8 @@ export namespace ReactStripeElements {
}
interface ElementProps extends ElementsOptions {
id?: string;
className?: string;
elementRef?(): void;