Skip to content

Commit

Permalink
fix: exporting RelayNetworkLayerOpts to be used externally (#104)
Browse files Browse the repository at this point in the history
RelayNetworkLayerOpts should be exposed externally so that wrapper application can simply extend the type.
Currently, types have to be copied from the package and into the application
  • Loading branch information
Ramakrishna committed Jun 30, 2020
1 parent 87f0673 commit 5014fa5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/RelayNetworkLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import type {
RNLExecuteFunction,
} from './definition';

type RelayNetworkLayerOpts = {|
export type RelayNetworkLayerOpts = {|
subscribeFn?: SubscribeFunction,
beforeFetch?: FetchHookFunction,
noThrow?: boolean,
Expand Down
2 changes: 1 addition & 1 deletion src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ export type SubscribeFunction = (
observer: any
) => RelayObservable<QueryPayload> | Disposable;

type RelayNetworkLayerOpts = {
export type RelayNetworkLayerOpts = {
subscribeFn?: SubscribeFunction;
beforeFetch?: FetchHookFunction;
noThrow?: boolean;
Expand Down

0 comments on commit 5014fa5

Please sign in to comment.