fork of hey-api/openapi-ts because I need some additional things
at main 32 lines 983 B view raw
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 { 7 provideTanStackQuery, 8 QueryClient, 9} from '@tanstack/angular-query-experimental'; 10 11import { client } from '../client/client.gen'; 12import { provideHeyApiClient } from '../client/client/client.gen'; 13import { routes } from './app.routes'; 14 15export const appConfig: ApplicationConfig = { 16 providers: [ 17 provideZoneChangeDetection({ eventCoalescing: true }), 18 provideRouter(routes), 19 provideHttpClient(withFetch()), 20 provideHeyApiClient(client), 21 provideTanStackQuery( 22 new QueryClient({ 23 defaultOptions: { 24 queries: { 25 retry: 0, 26 }, 27 }, 28 }), 29 ), 30 provideAnimationsAsync(), 31 ], 32};