From afeae32da1c7f3d7aefa2f9d7d5d72e4cf531a53 Mon Sep 17 00:00:00 2001 From: Maxim Van de Wynckel Date: Fri, 27 Oct 2023 00:27:31 +0200 Subject: [PATCH] fix: data service options extends service --- src/service/DataServiceDriver.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/service/DataServiceDriver.ts b/src/service/DataServiceDriver.ts index 5a138cf03..68d9764a9 100644 --- a/src/service/DataServiceDriver.ts +++ b/src/service/DataServiceDriver.ts @@ -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'; @@ -46,7 +46,7 @@ export abstract class DataServiceDriver extends Service { abstract deleteAll(query?: FilterQuery): Promise; } -export interface DataServiceOptions { +export interface DataServiceOptions extends ServiceOptions { serialize?: (obj: T) => any; deserialize?: (obj: any) => T; }