interface modelling

This commit is contained in:
Timo Hocker 2020-05-04 14:52:08 +02:00
parent 6101f066cd
commit 373635f0db
5 changed files with 6 additions and 2 deletions

View File

@ -5,7 +5,7 @@
* Created by Timo Hocker <timo@scode.ovh>, May 2020 * Created by Timo Hocker <timo@scode.ovh>, May 2020
*/ */
import { DataApply } from './DataApply'; import { DataApply } from './interfaces/DataApply';
export abstract class ControlModel implements DataApply { export abstract class ControlModel implements DataApply {
protected data: Record<string, string|number|boolean> = {}; protected data: Record<string, string|number|boolean> = {};

View File

@ -5,7 +5,7 @@
* Created by Timo Hocker <timo@scode.ovh>, May 2020 * Created by Timo Hocker <timo@scode.ovh>, May 2020
*/ */
import { DataApply } from './DataApply'; import { DataApply } from './interfaces/DataApply';
export abstract class DatabaseModel implements DataApply { export abstract class DatabaseModel implements DataApply {
protected data: Record<string, string|number|boolean> = {}; protected data: Record<string, string|number|boolean> = {};

View File

@ -7,3 +7,4 @@
export { ControlModel } from './ControlModel'; export { ControlModel } from './ControlModel';
export { DatabaseModel } from './DatabaseModel'; export { DatabaseModel } from './DatabaseModel';
export * from './interfaces';

3
lib/interfaces/index.ts Normal file
View File

@ -0,0 +1,3 @@
export { DataApply } from './DataApply';
export { Serializable } from './Serializable';
export { Graphable } from './Graphable';