style: rename files

This commit is contained in:
Dmitriy Pleshevskiy 2021-05-16 17:28:51 +03:00
parent b4a3d79b6a
commit a1193cee47
5 changed files with 8 additions and 8 deletions

View file

@ -1,4 +1,4 @@
import { useRequestContext } from './request-context';
import { useRequestContext } from './request_context';
export function useClient() {
const { client } = useRequestContext();

View file

@ -1,7 +1,7 @@
export * from './endpoint';
export * from './client';
export * from './client-hook';
export * from './lazy-request-hook';
export * from './request-hook';
export * from './request-context';
export * from './client_hook';
export * from './lazy_request_hook';
export * from './request_hook';
export * from './request_context';
export * from './reducer';

View file

@ -1,10 +1,10 @@
import React from 'react';
import invariant from 'tiny-invariant';
import isEqual from 'lodash.isequal';
import { useClient } from './client-hook';
import { useClient } from './client_hook';
import { AnyEndpoint, ExtractEndpointParams, ExtractEndpointResponse, ExtractEndpointVariables } from './endpoint';
import { PublicRequestState, RequestReducer, requestReducer } from './reducer';
import { useRequestContext } from './request-context';
import { useRequestContext } from './request_context';
import { ClientResponse } from './client';
import { isFunction } from './misc';

View file

@ -1,7 +1,7 @@
import React from 'react';
import invariant from 'tiny-invariant';
import { AnyEndpoint, Method } from './endpoint';
import { LazyRequestConfigFromEndpoint, useLazyRequest } from './lazy-request-hook';
import { LazyRequestConfigFromEndpoint, useLazyRequest } from './lazy_request_hook';
export type RequestConfigFromEndpoint<E extends AnyEndpoint> = Readonly<
LazyRequestConfigFromEndpoint<E>