From 373635f0db352c5dbd80691adbb70abee11bf168 Mon Sep 17 00:00:00 2001 From: Timo Hocker Date: Mon, 4 May 2020 14:52:08 +0200 Subject: [PATCH] interface modelling --- lib/ControlModel.ts | 2 +- lib/DatabaseModel.ts | 2 +- lib/index.ts | 1 + lib/{ => interfaces}/DataApply.ts | 0 lib/interfaces/index.ts | 3 +++ 5 files changed, 6 insertions(+), 2 deletions(-) rename lib/{ => interfaces}/DataApply.ts (100%) create mode 100644 lib/interfaces/index.ts diff --git a/lib/ControlModel.ts b/lib/ControlModel.ts index d23c97e..216a203 100644 --- a/lib/ControlModel.ts +++ b/lib/ControlModel.ts @@ -5,7 +5,7 @@ * Created by Timo Hocker , May 2020 */ -import { DataApply } from './DataApply'; +import { DataApply } from './interfaces/DataApply'; export abstract class ControlModel implements DataApply { protected data: Record = {}; diff --git a/lib/DatabaseModel.ts b/lib/DatabaseModel.ts index d8d6780..7aef765 100644 --- a/lib/DatabaseModel.ts +++ b/lib/DatabaseModel.ts @@ -5,7 +5,7 @@ * Created by Timo Hocker , May 2020 */ -import { DataApply } from './DataApply'; +import { DataApply } from './interfaces/DataApply'; export abstract class DatabaseModel implements DataApply { protected data: Record = {}; diff --git a/lib/index.ts b/lib/index.ts index e684315..5e3d2d2 100644 --- a/lib/index.ts +++ b/lib/index.ts @@ -7,3 +7,4 @@ export { ControlModel } from './ControlModel'; export { DatabaseModel } from './DatabaseModel'; +export * from './interfaces'; diff --git a/lib/DataApply.ts b/lib/interfaces/DataApply.ts similarity index 100% rename from lib/DataApply.ts rename to lib/interfaces/DataApply.ts diff --git a/lib/interfaces/index.ts b/lib/interfaces/index.ts new file mode 100644 index 0000000..4ef9914 --- /dev/null +++ b/lib/interfaces/index.ts @@ -0,0 +1,3 @@ +export { DataApply } from './DataApply'; +export { Serializable } from './Serializable'; +export { Graphable } from './Graphable';