mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 06:47:03 +00:00
allow returning null for SFCs
This commit is contained in:
Vendored
+1
-1
@@ -201,7 +201,7 @@ declare namespace React {
|
||||
|
||||
type SFC<P> = StatelessComponent<P>;
|
||||
interface StatelessComponent<P> {
|
||||
(props: P, context?: any): ReactElement<any>;
|
||||
(props: P, context?: any): ReactElement<any> | null;
|
||||
propTypes?: ValidationMap<P>;
|
||||
contextTypes?: ValidationMap<any>;
|
||||
defaultProps?: P;
|
||||
|
||||
Reference in New Issue
Block a user