Skip to content

Commit

Permalink
Update api extractor files
Browse files Browse the repository at this point in the history
  • Loading branch information
msutkowski committed May 30, 2021
1 parent 05b2e8c commit 551ce46
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 21 deletions.
24 changes: 12 additions & 12 deletions etc/redux-toolkit.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,31 +4,31 @@
```ts

import { Action } from 'redux';
import { ActionCreator } from 'redux';
import { AnyAction } from 'redux';
import { CombinedState } from 'redux';
import type { Action } from 'redux';
import type { ActionCreator } from 'redux';
import type { AnyAction } from 'redux';
import type { CombinedState } from 'redux';
import { default as createNextState } from 'immer';
import { createSelector } from 'reselect';
import { current } from 'immer';
import { Dispatch } from 'redux';
import type { Dispatch } from 'redux';
import { Draft } from 'immer';
import { freeze } from 'immer';
import { isDraft } from 'immer';
import { Middleware } from 'redux';
import type { Middleware } from 'redux';
import { original } from 'immer';
import { OutputParametricSelector } from 'reselect';
import { OutputSelector } from 'reselect';
import { ParametricSelector } from 'reselect';
import { PreloadedState } from 'redux';
import { Reducer } from 'redux';
import { ReducersMapObject } from 'redux';
import type { PreloadedState } from 'redux';
import type { Reducer } from 'redux';
import type { ReducersMapObject } from 'redux';
import { Selector } from 'reselect';
import { Store } from 'redux';
import { StoreEnhancer } from 'redux';
import type { Store } from 'redux';
import type { StoreEnhancer } from 'redux';
import { ThunkAction } from 'redux-thunk';
import { ThunkDispatch } from 'redux-thunk';
import { ThunkMiddleware } from 'redux-thunk';
import type { ThunkMiddleware } from 'redux-thunk';

// @public
export interface ActionCreatorWithNonInferrablePayload<T extends string = string> extends BaseActionCreator<unknown, T> {
Expand Down
18 changes: 9 additions & 9 deletions etc/rtk-query.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
```ts

import { ActionCreatorWithoutPayload } from '@reduxjs/toolkit';
import { ThunkDispatch } from '@reduxjs/toolkit';
import type { ActionCreatorWithoutPayload } from '@reduxjs/toolkit';
import type { ThunkDispatch } from '@reduxjs/toolkit';

// @public (undocumented)
export type Api<BaseQuery extends BaseQueryFn, Definitions extends EndpointDefinitions, ReducerPath extends string, TagTypes extends string, Enhancers extends ModuleName = CoreModule> = Id<Id<UnionToIntersection<ApiModules<BaseQuery, Definitions, ReducerPath, TagTypes>[Enhancers]>> & {
Expand All @@ -14,7 +14,6 @@ export type Api<BaseQuery extends BaseQueryFn, Definitions extends EndpointDefin
overrideExisting?: boolean;
}): Api<BaseQuery, Definitions & NewDefinitions, ReducerPath, TagTypes, Enhancers>;
enhanceEndpoints<NewTagTypes extends string = never>(_: {
addEntityTypes?: readonly NewTagTypes[];
addTagTypes?: readonly NewTagTypes[];
endpoints?: ReplaceTagTypes<Definitions, TagTypes | NoInfer<NewTagTypes>> extends infer NewDefinitions ? {
[K in keyof NewDefinitions]?: Partial<NewDefinitions[K]> | ((definition: NewDefinitions[K]) => void);
Expand All @@ -26,11 +25,6 @@ export type Api<BaseQuery extends BaseQueryFn, Definitions extends EndpointDefin
export interface ApiModules<BaseQuery extends BaseQueryFn, Definitions extends EndpointDefinitions, ReducerPath extends string, TagTypes extends string> {
}

// @public (undocumented)
export type ApiWithInjectedEndpoints<ApiDefinition extends Api<any, any, any, any>, Injections extends ApiDefinition extends Api<infer B, any, infer R, infer E> ? [Api<B, any, R, E>, ...Api<B, any, R, E>[]] : never> = Omit<ApiDefinition, 'endpoints'> & Omit<Injections, 'endpoints'> & {
endpoints: ApiDefinition['endpoints'] & Partial<UnionToIntersection<Injections[number]['endpoints']>>;
};

// @public (undocumented)
export type BaseQueryEnhancer<AdditionalArgs = unknown, AdditionalDefinitionExtraOptions = unknown, Config = void> = <BaseQuery extends BaseQueryFn>(baseQuery: BaseQuery, config: Config) => BaseQueryFn<BaseQueryArg<BaseQuery> & AdditionalArgs, BaseQueryResult<BaseQuery>, BaseQueryError<BaseQuery>, BaseQueryExtraOptions<BaseQuery> & AdditionalDefinitionExtraOptions>;

Expand Down Expand Up @@ -140,8 +134,14 @@ export function setupListeners(dispatch: ThunkDispatch<any, any, any>, customHan
onOffline: typeof onOffline;
}) => () => void): () => void;

// @public @deprecated (undocumented)
export const skipSelector: symbol;

// @public (undocumented)
export const skipSelector: unique symbol;
export type SkipToken = typeof skipToken;

// @public
export const skipToken: unique symbol;


// (No @packageDocumentation comment for this package)
Expand Down

0 comments on commit 551ce46

Please sign in to comment.