diff --git a/src/index.js.flow b/src/index.js.flow index 43cafcc65c..5c5d35b396 100644 --- a/src/index.js.flow +++ b/src/index.js.flow @@ -99,10 +99,14 @@ export interface OptionProps { export type OptionDescription

= (props: P) => QueryOpts | MutationOpts; +export type NamedProps = P & { + ownProps: R; +}; + export interface OperationOption { options?: OptionDescription, props?: (props: OptionProps) => any, - skip?: boolean | ((props: any) => boolean), + +skip?: boolean | ((props: any) => boolean), name?: string, withRef?: boolean, shouldResubscribe?: (props: TProps, nextProps: TProps) => boolean, @@ -117,7 +121,7 @@ export interface OperationComponent< ( component: | StatelessComponent - | Class>, + | Class>, ): Class>, } @@ -129,7 +133,7 @@ declare export function graphql( declare export function withApollo( component: | StatelessComponent - | Class>, + | Class>, ): Class>; export interface IDocumentDefinition {