From 1001a8eae92aff3d95aee7082459a36a51f2ca45 Mon Sep 17 00:00:00 2001 From: Justin Bay Date: Mon, 23 Jan 2017 19:33:00 -0500 Subject: [PATCH] Revert 80e4d8b/#11612. Fixes #14176 --- react/index.d.ts | 1 - react/test/index.ts | 14 -------------- 2 files changed, 15 deletions(-) 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(f: (prevState: S, props: P) => Pick, callback?: () => any): void; setState(state: Pick, 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 // --------------------------------------------------------------------------