Skip to content

Commit

Permalink
refactor(rx-stateful): rename type RxStatefulRequest to RxRequest
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbe812 committed Nov 28, 2024
1 parent aea0a73 commit 9a983e5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion libs/rx-stateful/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export {
RxStateful,
RxStatefulWithError,
RxStatefulConfig,
RxStatefulRequest
RxRequest
} from './lib/types/types';
export { RxStatefulAccumulationFn } from './lib/types/accumulation-fn';

Expand Down
4 changes: 2 additions & 2 deletions libs/rx-stateful/src/lib/rx-request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
} from 'rxjs';
import {
RxStatefulConfig,
RxStatefulRequest,
RxRequest,
RxStatefulSourceTriggerConfig,
} from './types/types';
import {_handleSyncValue} from './util/handle-sync-value';
Expand Down Expand Up @@ -38,7 +38,7 @@ export type RxStatefulLoader<T,A,E> = {
* @param sourceFn$
* @param sourceTriggerConfig
*/
export function rxRequest<T,A, E = unknown>(loaderOptions: RxStatefulLoader<T, A, E>): RxStatefulRequest<T, E>{
export function rxRequest<T,A, E = unknown>(loaderOptions: RxStatefulLoader<T, A, E>): RxRequest<T, E>{
const {requestFn, trigger, config} = loaderOptions;

!config?.injector && assertInInjectionContext(rxRequest);
Expand Down
2 changes: 1 addition & 1 deletion libs/rx-stateful/src/lib/types/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export type RxStatefulSourceTriggerConfig<T,A, E = unknown> = RxStatefulConfig<T
* @description
* Interface for the stateful request object returned by rxStateful$
*/
export interface RxStatefulRequest<T, E = unknown> {
export interface RxRequest<T, E = unknown> {
/**
* Observable that emits the current state including value, error, and loading states
*/
Expand Down

0 comments on commit 9a983e5

Please sign in to comment.