diff --git a/types/react/test/index.ts b/types/react/test/index.ts index 7f8b13a437..8787c19d62 100644 --- a/types/react/test/index.ts +++ b/types/react/test/index.ts @@ -22,7 +22,7 @@ interface Console { log(...args: any[]): void; } -interface Props extends React.Attributes { +interface Props { hello: string; world?: string | null; foo: number; @@ -132,8 +132,7 @@ class ModernComponent extends React.Component static propTypes: React.ValidationMap = { hello: PropTypes.string.isRequired, world: PropTypes.string, - foo: PropTypes.number.isRequired, - key: PropTypes.oneOfType([PropTypes.number, PropTypes.string]) as PropTypes.Validator + foo: PropTypes.number.isRequired }; static contextTypes: React.ValidationMap = {