fork of hey-api/openapi-ts because I need some additional things
1import { provideHttpClient, withFetch } from '@angular/common/http';
2import type { ApplicationConfig } from '@angular/core';
3import { provideZoneChangeDetection } from '@angular/core';
4import { provideAnimationsAsync } from '@angular/platform-browser/animations/async';
5import { provideRouter } from '@angular/router';
6import { provideTanStackQuery, QueryClient } from '@tanstack/angular-query-experimental';
7
8import { client } from '../client/client.gen';
9import { provideHeyApiClient } from '../client/client/client.gen';
10import { routes } from './app.routes';
11
12export const appConfig: ApplicationConfig = {
13 providers: [
14 provideZoneChangeDetection({ eventCoalescing: true }),
15 provideRouter(routes),
16 provideHttpClient(withFetch()),
17 provideHeyApiClient(client),
18 provideTanStackQuery(
19 new QueryClient({
20 defaultOptions: {
21 queries: {
22 retry: 0,
23 },
24 },
25 }),
26 ),
27 provideAnimationsAsync(),
28 ],
29};