Skip to content

Commit

Permalink
fix: data service options extends service
Browse files Browse the repository at this point in the history
  • Loading branch information
Maximvdw committed Oct 26, 2023
1 parent e6b25eb commit afeae32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/service/DataServiceDriver.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Service } from './Service';
import { Service, ServiceOptions } from './Service';
import { FilterQuery } from './FilterQuery';
import { FindOptions } from './FindOptions';
import { DataSerializer } from '../data/DataSerializer';
Expand Down Expand Up @@ -46,7 +46,7 @@ export abstract class DataServiceDriver<I, T> extends Service {
abstract deleteAll(query?: FilterQuery<T>): Promise<void>;
}

export interface DataServiceOptions<T = any> {
export interface DataServiceOptions<T = any> extends ServiceOptions {
serialize?: (obj: T) => any;
deserialize?: (obj: any) => T;
}

0 comments on commit afeae32

Please sign in to comment.