Skip to content

Commit

Permalink
style: fix format issues
Browse files Browse the repository at this point in the history
  • Loading branch information
SaulMoro committed Nov 13, 2023
1 parent e056865 commit f5bbb65
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions projects/ngrx-rtk-query/src/lib/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ declare module '@reduxjs/toolkit/query' {
[K in keyof Definitions]: Definitions[K] extends QueryDefinition<any, any, any, any, any>
? QueryHooks<Definitions[K]>
: Definitions[K] extends MutationDefinition<any, any, any, any, any>
? MutationHooks<Definitions[K]>
: never;
? MutationHooks<Definitions[K]>
: never;
};
/**
* A hook that accepts a string endpoint name, and provides a callback that when called,
Expand Down
4 changes: 2 additions & 2 deletions projects/ngrx-rtk-query/test/build-hooks.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -627,14 +627,14 @@ describe.skip('hooks tests', () => {

expect(Object.keys(getState().api.mutations)).toHaveLength(0);

userEvent.click(screen.getByRole('button', { name: 'trigger' }));
await userEvent.click(screen.getByRole('button', { name: 'trigger' }));

await screen.findByText(/isSuccess/i);
expect(screen.getByText('Yay')).toBeInTheDocument();

expect(Object.keys(getState().api.mutations)).toHaveLength(1);

userEvent.click(screen.getByRole('button', { name: 'reset' }));
await userEvent.click(screen.getByRole('button', { name: 'reset' }));

await screen.findByText(/isUninitialized/i);
expect(screen.queryByText('Yay')).not.toBeInTheDocument();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ import { useLazyGetEpisodeQuery } from '../services';
character.status.toLowerCase() === statusTypes.dead
? 'bg-red-400'
: character.status.toLowerCase() === statusTypes.alive
? 'bg-green-400'
: 'bg-gray-400'
? 'bg-green-400'
: 'bg-gray-400'
"
></span>
<h6 class="text-sm font-medium">{{ character.status }}</h6>
Expand Down
1 change: 1 addition & 0 deletions src/app/features/skip/pokemon/pokemon.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export class PokemonComponent implements OnInit, OnDestroy {

query = pokemonApi.endpoints.getPokemonByName.useQuery(this.#name, this.#options);

// eslint-disable-next-line @typescript-eslint/no-explicit-any
intervalId: any;

ngOnInit(): void {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export class SkipContainerComponent implements OnDestroy {
name = signal(nanoid());
running = signal(false);

// eslint-disable-next-line @typescript-eslint/no-explicit-any
queryIntervalId: any;

getSubscriptionsLength(subscriptions: object): number {
Expand Down

0 comments on commit f5bbb65

Please sign in to comment.