diff --git a/tests/es6-class.d.ts b/tests/es6-class.d.ts index 33f0345e..0e6ab3ef 100644 --- a/tests/es6-class.d.ts +++ b/tests/es6-class.d.ts @@ -10,6 +10,7 @@ declare module 'component' { export interface ComponentOptionalObjectWithShape { color?: string; fontSize?: number; + "aria-label"?: string; } export type ComponentRequiredUnion = ((...args: any[])=>any) | boolean; diff --git a/tests/es6-class.jsx b/tests/es6-class.jsx index 60cc4d59..aaab6179 100644 --- a/tests/es6-class.jsx +++ b/tests/es6-class.jsx @@ -32,7 +32,8 @@ Component.propTypes = { //optionalObjectOf: React.PropTypes.objectOf(React.PropTypes.number), optionalObjectWithShape: React.PropTypes.shape({ color: React.PropTypes.string, - fontSize: React.PropTypes.number + fontSize: React.PropTypes.number, + 'aria-label': React.PropTypes.string, }), requiredFunc: React.PropTypes.func.isRequired, requiredAny: React.PropTypes.any.isRequired,