Skip to content

Commit

Permalink
Export component props (#236)
Browse files Browse the repository at this point in the history
Export component props
  • Loading branch information
kitten authored May 6, 2019
2 parents 26252ad + 4de432a commit f867daa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/Mutation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class MutationHandler extends Component<
};
}

type MutationProps = Omit<MutationHandlerProps, 'client'>;
export type MutationProps = Omit<MutationHandlerProps, 'client'>;

export const Mutation: FC<MutationProps> = props => (
<Consumer>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Query.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class QueryHandler extends Component<QueryHandlerProps, QueryHandlerState> {
}
}

type QueryProps = Omit<QueryHandlerProps, 'client'>;
export type QueryProps = Omit<QueryHandlerProps, 'client'>;

export const Query: FC<QueryProps> = props => (
<Consumer>{client => <QueryHandler {...props} client={client} />}</Consumer>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Subscription.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class SubscriptionHandler extends Component<
}
}

type SubscriptionProps = Omit<SubscriptionHandlerProps, 'client'>;
export type SubscriptionProps = Omit<SubscriptionHandlerProps, 'client'>;

export const Subscription: FC<SubscriptionProps> = props => (
<Consumer>
Expand Down

0 comments on commit f867daa

Please sign in to comment.