diff --git a/src/RelayEnvironmentProvider.tsx b/src/RelayEnvironmentProvider.tsx index cc1059c..664e65c 100644 --- a/src/RelayEnvironmentProvider.tsx +++ b/src/RelayEnvironmentProvider.tsx @@ -1,11 +1,8 @@ import * as React from 'react'; -import { Environment } from 'relay-runtime'; +import { IEnvironment } from 'relay-runtime'; import { ReactRelayContext } from './ReactRelayContext'; // eslint-disable-line @typescript-eslint/no-unused-vars -export const RelayEnvironmentProvider = function (props: { - children: React.ReactNode; - environment: TEnvironment; -}): JSX.Element { +export function RelayEnvironmentProvider(props: { children: React.ReactNode; environment: IEnvironment }): JSX.Element { const context = React.useMemo(() => ({ environment: props.environment }), [props.environment]); return {props.children}; -}; +}