UNPKG

@datorama/akita

Version:

State Management Tailored-Made for JS Applications

18 lines (17 loc) 730 B
import { InjectionToken } from '@angular/core'; import { NgEntityServiceParams } from './types'; import { HttpMethod } from './ng-entity-service-notifier'; export interface NgEntityServiceGlobalConfig { baseUrl?: string; httpMethods?: Partial<{ GET: HttpMethod; POST: HttpMethod; PATCH: HttpMethod; PUT: HttpMethod; DELETE: HttpMethod; }>; } export declare const NG_ENTITY_SERVICE_CONFIG: InjectionToken<NgEntityServiceGlobalConfig>; export declare const defaultConfig: NgEntityServiceGlobalConfig; export declare function mergeDeep(target: any, ...sources: any[]): any; export declare function NgEntityServiceConfig(config?: NgEntityServiceParams): (constructor: any) => void;