Skip to content
This repository has been archived by the owner on Oct 10, 2022. It is now read-only.

Commit

Permalink
Merge 8bb9a15 into fa1c1ba
Browse files Browse the repository at this point in the history
  • Loading branch information
vlasy committed Feb 22, 2019
2 parents fa1c1ba + 8bb9a15 commit 7883f10
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib/service/handlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { ServiceImplementation } from '../settings/definitions';
export type DetailHandler<T, C> = (id: number, context: C) => Promise<T>;
export type CreateHandler<T, C> = (data: any, context: C) => Promise<T>;
export type UpdateHandler<T, C> = (id: number, data: any, context: C) => Promise<T>;
export type DeleteHandler<T, C> = (id: number, context: C) => Promise<T>;
export type DeleteHandler<T, C> = (id: number, context: C) => void;
export type ListHandler<T, C> = (filters: any, context: C) => Promise<T[]>;

export interface HandlerCreators<T, C> {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/settings/definitions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export interface Definitions<T, C = any> {
* Delete entity (fetched in DeleteContext)
* Implement to use `deleteHandler`
*/
delete?: (context: DeleteContext<T, C>) => PromiseLike<T>;
delete?: (context: DeleteContext<T, C>) => PromiseLike<any>;
/**
* List entities, optionally filter (filters stored in ListContext)
* Implement to use `listHandler`
Expand Down

0 comments on commit 7883f10

Please sign in to comment.