@hulanbv/nest-utilities-client-state
Advanced tools
Comparing version 0.3.3 to 0.3.4
@@ -12,2 +12,2 @@ import { CrudService, IHttpOptions } from 'nest-utilities-client'; | ||
*/ | ||
export declare function useRequest<Service extends CrudService<IModel>, Model extends IModel = GetServiceModel<Service>>(service: Service, query?: string, method?: FetchMethod, httpOptions?: IHttpOptions<Model>, stateOptions?: IStateOptions): IRequestState<Service, Model>; | ||
export declare function useRequest<Service extends CrudService<IModel>, Model extends IModel = GetServiceModel<Service>>(service: Service, query?: string, method?: FetchMethod, httpOptions?: IHttpOptions<GetServiceModel<Service>>, stateOptions?: IStateOptions): IRequestState<Service, Model>; |
@@ -9,2 +9,2 @@ import { CrudService, IHttpOptions } from 'nest-utilities-client'; | ||
*/ | ||
export declare function useAll<Service extends CrudService<IModel>, Model extends IModel = GetServiceModel<Service>>(service: Service, httpOptions?: IHttpOptions<Model>, stateOptions?: IStateOptions): IRequestState<Service, Model, Model[]>; | ||
export declare function useAll<Service extends CrudService<IModel>, Model extends IModel = GetServiceModel<Service>>(service: Service, httpOptions?: IHttpOptions<GetServiceModel<Service>>, stateOptions?: IStateOptions): IRequestState<Service, Model, Model[]>; |
@@ -10,2 +10,2 @@ import { CrudService, IHttpOptions } from 'nest-utilities-client'; | ||
*/ | ||
export declare function useById<Service extends CrudService<IModel>, Model extends IModel = GetServiceModel<Service>>(service: Service, id?: string, httpOptions?: IHttpOptions<Model>, stateOptions?: IStateOptions): IRequestState<Service, Model, Model>; | ||
export declare function useById<Service extends CrudService<IModel>, Model extends IModel = GetServiceModel<Service>>(service: Service, id?: string, httpOptions?: IHttpOptions<GetServiceModel<Service>>, stateOptions?: IStateOptions): IRequestState<Service, Model, Model>; |
@@ -10,2 +10,2 @@ import { CrudService, IHttpOptions } from 'nest-utilities-client'; | ||
*/ | ||
export declare function useDelete<Service extends CrudService<IModel>, Model extends IModel = GetServiceModel<Service>>(service: Service, id?: string, httpOptions?: IHttpOptions<Model>, stateOptions?: IStateOptions): IRequestState<Service, Model, Model>; | ||
export declare function useDelete<Service extends CrudService<IModel>, Model extends IModel = GetServiceModel<Service>>(service: Service, id?: string, httpOptions?: IHttpOptions<GetServiceModel<Service>>, stateOptions?: IStateOptions): IRequestState<Service, Model, Model>; |
@@ -10,2 +10,2 @@ import { CrudService, IHttpOptions } from 'nest-utilities-client'; | ||
*/ | ||
export declare function useMany<Service extends CrudService<IModel>, Model extends IModel = GetServiceModel<Service>>(service: Service, ids?: string[], httpOptions?: IHttpOptions<Model>, stateOptions?: IStateOptions): IRequestState<Service, Model, Model[]>; | ||
export declare function useMany<Service extends CrudService<IModel>, Model extends IModel = GetServiceModel<Service>>(service: Service, ids?: string[], httpOptions?: IHttpOptions<GetServiceModel<Service>>, stateOptions?: IStateOptions): IRequestState<Service, Model, Model[]>; |
@@ -11,2 +11,2 @@ import { CrudService, IHttpOptions } from 'nest-utilities-client'; | ||
*/ | ||
export declare function usePatch<Service extends CrudService<IModel>, Model extends IModel = GetServiceModel<Service>>(service: Service, id?: string, httpOptions?: IHttpOptions<Model>, stateOptions?: IStateOptions): IRequestState<Service, Model, Model>; | ||
export declare function usePatch<Service extends CrudService<IModel>, Model extends IModel = GetServiceModel<Service>>(service: Service, id?: string, httpOptions?: IHttpOptions<GetServiceModel<Service>>, stateOptions?: IStateOptions): IRequestState<Service, Model, Model>; |
@@ -8,2 +8,2 @@ import { CrudService, IHttpOptions } from 'nest-utilities-client'; | ||
*/ | ||
export declare function usePost<Service extends CrudService<IModel>, Model extends IModel = GetServiceModel<Service>>(service: Service, httpOptions?: IHttpOptions<Model>, stateOptions?: IStateOptions): IRequestState<Service, Model, Model>; | ||
export declare function usePost<Service extends CrudService<IModel>, Model extends IModel = GetServiceModel<Service>>(service: Service, httpOptions?: IHttpOptions<GetServiceModel<Service>>, stateOptions?: IStateOptions): IRequestState<Service, Model, Model>; |
@@ -11,2 +11,2 @@ import { CrudService, IHttpOptions } from 'nest-utilities-client'; | ||
*/ | ||
export declare function usePut<Service extends CrudService<IModel>, Model extends IModel = GetServiceModel<Service>>(service: Service, id?: string, httpOptions?: IHttpOptions<Model>, stateOptions?: IStateOptions): IRequestState<Service, Model, Model>; | ||
export declare function usePut<Service extends CrudService<IModel>, Model extends IModel = GetServiceModel<Service>>(service: Service, id?: string, httpOptions?: IHttpOptions<GetServiceModel<Service>>, stateOptions?: IStateOptions): IRequestState<Service, Model, Model>; |
{ | ||
"name": "@hulanbv/nest-utilities-client-state", | ||
"version": "0.3.3", | ||
"version": "0.3.4", | ||
"description": "React hooks for state management when using nest-utilities-client and a nest-utilities based API.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
75158
942