UNPKG

@sprucelabs/schema

Version:

Static and dynamic binding plus runtime validation and transformation to ensure your app is sound. 🤓

24 lines (23 loc) • 496 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); class AbstractEntity { get schemaId() { return this.schema.id; } get name() { return this.schema.name; } get namespace() { return this.schema.name; } get version() { return this.schema.version; } get description() { return this.schema.id; } constructor(schema) { this.schema = schema; } } exports.default = AbstractEntity;