Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Component prop should be optional #2769

Merged
merged 3 commits into from
Feb 6, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export var Scene: SceneStatic;
export type Scene = SceneStatic;
interface SceneProps extends React.Props<Scene> {
key: string;
component: React.ComponentType<any>
component?: React.ComponentType<any>
back?: boolean;
init?: boolean;
clone?: boolean;
Expand Down Expand Up @@ -148,8 +148,8 @@ interface ActionsStatic {
refresh: (props?: any) => void;
replace: (sceneKey: string, props?: any) => void;
reset: (sceneKey: string, props?: any) => void;
drawerOpen?: () => void;
drawerClose?: () => void;
drawerOpen?: any;
drawerClose?: any;

}
interface ActionsGenericStatic extends ActionsStatic {
Expand Down