diff --git a/react/index.d.ts b/react/index.d.ts index a840e4b64d..4a19ec723c 100644 --- a/react/index.d.ts +++ b/react/index.d.ts @@ -165,7 +165,6 @@ declare namespace React { // Base component for plain JS classes class Component
implements ComponentLifecycle
{
constructor(props?: P, context?: any);
- constructor(...args: any[]);
setState, callback?: () => any): void;
setState, callback?: () => any): void;
forceUpdate(callBack?: () => any): void;
diff --git a/react/test/index.ts b/react/test/index.ts
index 0900926cf6..b575055514 100644
--- a/react/test/index.ts
+++ b/react/test/index.ts
@@ -659,20 +659,6 @@ React.createFactory(TransitionGroup)({ component: "div" });
let newObjShallow = update(obj, { $merge: { b: 6, c: 7 } }); // => {a: 5, b: 6, c: 7}
}
-//
-// React Component classes super spread arguments
-// --------------------------------------------------------------------------
-class ConstructorSpreadArgsComponent extends React.Component<{}, {}> {
- constructor(...args: any[]) {
- super(...args);
- }
-}
-class ConstructorSpreadArgsPureComponent extends React.PureComponent<{}, {}> {
- constructor(...args: any[]) {
- super(...args);
- }
-}
-
//
// The SyntheticEvent.target.value should be accessible for onChange
// --------------------------------------------------------------------------