mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-18 04:24:30 +08:00
Revert 80e4d8b/#11612. Fixes #14176
This commit is contained in:
1
react/index.d.ts
vendored
1
react/index.d.ts
vendored
@@ -165,7 +165,6 @@ declare namespace React {
|
||||
// Base component for plain JS classes
|
||||
class Component<P, S> implements ComponentLifecycle<P, S> {
|
||||
constructor(props?: P, context?: any);
|
||||
constructor(...args: any[]);
|
||||
setState<K extends keyof S>(f: (prevState: S, props: P) => Pick<S, K>, callback?: () => any): void;
|
||||
setState<K extends keyof S>(state: Pick<S, K>, callback?: () => any): void;
|
||||
forceUpdate(callBack?: () => any): void;
|
||||
|
||||
@@ -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
|
||||
// --------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user