@curium.rocks/data-emitter-base
Advanced tools
Comparing version 0.1.1-alpha.29 to 0.1.1-alpha.30
@@ -1,2 +0,2 @@ | ||
import { IDisposable } from "./dataEmitter"; | ||
import { IClassifier, IDisposable } from "./dataEmitter"; | ||
/** | ||
@@ -18,3 +18,3 @@ * Enforce the object providing controlled | ||
*/ | ||
export interface IChronicler extends IDisposable { | ||
export interface IChronicler extends IDisposable, IClassifier { | ||
/** | ||
@@ -21,0 +21,0 @@ * Save the provided object into a persistent store, |
@@ -160,19 +160,20 @@ import { IChronicler, IJsonSerializable } from "./chronicler"; | ||
export declare function isJsonSerializable(obj: unknown): boolean; | ||
/** | ||
* A data source emitter | ||
*/ | ||
export interface IDataEmitter extends IJsonSerializable { | ||
export interface IClassifier { | ||
/** | ||
* The unique identifier for the data source/emitter | ||
* unique id for a resource or entity | ||
*/ | ||
readonly id: string; | ||
/** | ||
* Human readable name that can be used as a display name for this | ||
* data source/emitter | ||
* name for the resource or entity | ||
*/ | ||
readonly name: string; | ||
/** | ||
* A longer description of the data source/emitter | ||
* Description of the resource or entity | ||
*/ | ||
readonly description: string; | ||
} | ||
/** | ||
* A data source emitter | ||
*/ | ||
export interface IDataEmitter extends IJsonSerializable, IClassifier { | ||
/** | ||
@@ -179,0 +180,0 @@ * Register a data listener that will receive events on new data |
{ | ||
"name": "@curium.rocks/data-emitter-base", | ||
"version": "0.1.1-alpha.29", | ||
"version": "0.1.1-alpha.30", | ||
"description": "A collection of typescript class interfaces and base classes that specify generic contracts with things that emit data", | ||
@@ -5,0 +5,0 @@ "main": "build/src/lib.js", |
2071
100445